Button
An action control with clear hierarchy and state.
An action control with clear hierarchy and state.
Import
import { Button } from 'bmates-ui';Basic usage
The example below mirrors the primary Storybook composition and can be used as a starting point.
<Button variant="primary">Save changes</Button>Preview
<Button variant="primary">Save changes</Button>Prop previews
The examples below isolate the props that change visual output or interaction.
Variants
<Button variant="success">Success</Button>Sizes
<Button size="lg">Large</Button>States
<Button disabled>Disabled</Button>Component API
variant
Visual style. Available values: default, secondary, success, danger, warning, info, outline, and ghost.
size
Controls the button height and padding.
full
Makes the button fill its container width.
disabled
Disables interaction. Native button props, including type and onClick, are supported.
Usage notes
- Every component in the table is exported from
bmates-ui. - Unless noted otherwise, a component also accepts the standard props of its underlying HTML element.
- For application-owned state, use a controlled value and its change handler instead of only a
default*prop.
