actions
Button
A button is a box area or text that communicates and triggers user actions when clicked.
Features
- Keyboard accessible
- Customizable icon
- Multiple styles and sizes
- Themes ready
Anatomy
import { Button } from "@wonderflow/react-components";
export default () => {
return <Button>Click</Button>;
};Grouping buttons
Sometimes you need to group buttons together to create a single visual context or to create a set of related actions. To group buttons, you can use the ButtonsGroup component.
API Reference
Button
PROPERTY
TYPE
DEFAULT
kindenumprimarydimensionenumregularfullWidthbooleanfalseiconenumiconPositionenumlefticonColorstringdisabledbooleanbusybooleanpressedbooleanfalseonClickfunctionasenumbuttonButtonsGroup
PROPERTY
TYPE
DEFAULT
kindenumprimarydimensionenumregularAccessibility
Adheres to the button role requirements.
Keyboard interactions
| Name | Description |
|---|---|
| tab | Move focus on the element or outside |
| enter | Trigger the component action |
| space | Trigger the component action |