Button
Renders a button element, or a link when you pass href. Defaults to the primary variant at medium size.
Installation
Copy the command below and run it in your terminal.
Usage
Set status to loading, success, or error for async feedback, then back to idle. The button resizes to fit each
label and animates between widths, and status labels fade in letter by letter. Clicks
are ignored while loading. The default labels are Loading…, Done, and Try again.
Examples
Leading icon
Trailing icon
Status
As link
Disabled
Icon group
Anatomy
Button - Triggers an action or navigation.
<script lang="ts"> import { Button } from '@sivir-ui/svelte/components/button'; </script> <Button>Get started</Button>