Button
A Warcraft-themed button with gold border-image frames. Supports default and frame variants.
Default
Frame
Loading State
Click Handler
Any HTML attribute is forwarded to the underlying <button>. Use onclick for click events.
Usage
<script>
import { Button } from 'warcraftcn-ui-svelte';
</script>
<Button>Accept Quest</Button>
<Button variant="frame">Open Chest</Button>
<Button disabled>Locked</Button>Props
| Prop | Type | Default |
|---|---|---|
| variant | "default" | "frame" | "default" |
| style | string | "" |
| class | string | "" |