dssoca docs

Button

The primary action control.

Three variants — primary, secondary, ghost. Square edges, token-driven padding.

Demo

live · storybook Open in Storybook

Demo loads from http://localhost:6006. Run pnpm storybook for it to render locally.

Usage

svelte
<script>
  import { Button } from 'dssoca';
</script>

<Button variant="primary" onclick={() => {}}>deploy</Button>
<Button variant="secondary">cancel</Button>
<Button variant="ghost">forgot?</Button>

Props

PropTypeDefaultDescription
variant'primary' | 'secondary' | 'ghost''secondary'Visual emphasis.
type'button' | 'submit' | 'reset''button'Native button type.
disabledbooleanfalseDisable the button.
onclick(e: MouseEvent) => voidClick handler.
size'sm' | 'md' | 'lg'Per-instance size override; inherits the ancestor `data-size-variant` when unset.
childrenSnippetRequired. Button label.