Types

button component can be rendered in different types, depending on the value of the type parameter. By default, it is rendered as a normal button, but you can also specify it to be a submit button, reset button, or a link. To render a link, you need to set the href parameter to the desired URL.

{%- call ui.util.call(show_example) -%} {%- raw %} {{ ui.button("Normal button") }} {{ ui.button("Submit", type="submit") }} {{ ui.button("Reset", type="reset") }} {{ ui.button("Link", href="/") }} {%- endraw %} {%- endcall %}