{{> docs-start pageTitle="Buttons" pageDescription="Button component with multiple variants, sizes, and states" }}

Examples

{{#> example-block title="Default" description="Basic button with primary styling." id="btn-default" language="html" }} {{> button/examples/default}} {{/example-block}} {{#> example-block title="Variants" description="Available button style variants." id="btn-variants" language="html" }} {{> button/examples/variants}} {{/example-block}} {{#> example-block title="Semantic Colors" description="Buttons with semantic color meanings." id="btn-semantic" language="html" }} {{> button/examples/semantic}} {{/example-block}} {{#> example-block title="Soft Variants" description="Subtle background with colored text using .btn-soft-{color} class." id="btn-soft" language="html" }} {{> button/examples/soft}} {{/example-block}} {{#> example-block title="Sizes" description="Small, default, and large button sizes." id="btn-sizes" language="html" }} {{> button/examples/sizes}} {{/example-block}} {{#> example-block title="Icon Buttons" description="Square icon-only buttons using .btn-icon class." id="btn-icon" language="html" }} {{> button/examples/icon}} {{/example-block}} {{#> example-block title="With Icons" description="Buttons with icon and text together." id="btn-with-icons" language="html" }} {{> button/examples/with-icons}} {{/example-block}} {{#> example-block title="States" description="Disabled and loading button states." id="btn-states" language="html" }} {{> button/examples/states}} {{/example-block}} {{#> example-block title="Full Width" description="Full-width button using .btn-full class." id="btn-full" language="html" }} {{> button/examples/full}} {{/example-block}}

Usage

The button component is located at src/components/ui/button/button.scss

Available Classes

.btn
.btn-secondary
.btn-destructive
.btn-outline
.btn-ghost
.btn-link
.btn-success
.btn-warning
.btn-info
.btn-sm
.btn-lg
.btn-icon
.btn-full
.btn-loading
{{> docs-end}}