Button
A clickable button that triggers a function when pressed. Buttons are the primary way users interact with your widget, whether submitting forms, navigating between views, or performing actions.Props
Examples
Basic Action Button
A simple button that triggers a named function when clicked.Form Submit Button
Use thesubmit prop to make the button submit its parent form. Pair this with a Card that has asForm set to true.
When
submit is true, clicking the button collects all input values from the parent form and passes them to the function defined in the Card’s confirm action or the button’s own onClickAction.Icon Button
Add icons before or after the label usingiconStart and iconEnd. Use the uniform prop to create a square icon-only button.
Full-Width Button
Setblock to true to make the button span the entire width of its container.
Button with Additional Inputs
Pass extra data alongside the action usingadditionalInputs. This is especially useful when rendering buttons in a loop, where each button needs to reference a specific item.