Button
A button is a box area or text that communicates and triggers user actions when clicked.
Features
- Keyboard accessible
- Focusable even when disabled
- Can contain icons
- 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
tab
Move focus on the element or outside
enter
Trigger the component action