@objectifthunes/whiteboard
BUTTONS

Button

Three variants (primary, secondary, danger), a loading state, full-width + icon-only modifiers. Defaults to type="button".


PREVIEW
SOURCE
<Button>Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="danger">Delete</Button>
<Button disabled>Disabled</Button>
PREVIEW
SOURCE
<Button loading loadingText="Saving…">Save</Button>
PREVIEW
SOURCE
<Button fullWidth>Full width</Button>
<Button iconOnly aria-label="Star">★</Button>
NOTES

Emits the wb-btn class family. Defaults to type="button" so it never accidentally submits a form.

loading auto-disables the button, prefixes a spinner, and swaps the label for loadingText when provided.