Draft UI

Button

A button allows a user to perform an action, with mouse, touch, and keyboard interactions.

Installation

bash
npx @sly-cli/sly add draft-ui button

Examples

Default

The default Button uses variant solid and size md.

Themes

You can use the variant prop to alter the Button theme. Variants solid, outline, subtle, ghost, destructive, and link are included by default.

Sizes

You can use the size prop to alter the Button size. Sizes xs, sm, md, and lg are included by default.

Disabled

Use the isDisabled prop to make the Button disabled.