Checkbox
A faction-themed checkbox with custom checked/unchecked images per faction. Supports bindable checked state and disabled mode.
Factions
Initially Checked
Disabled
With Descriptive Labels
Usage
<script>
import { Checkbox } from 'warcraftcn-ui-svelte';
let checked = $state(false);
</script>
<Checkbox bind:checked faction="orc">Orc Checkbox</Checkbox>
<Checkbox disabled>Disabled</Checkbox>Props
| Prop | Type | Default |
|---|---|---|
| faction | "default" | "orc" | "elf" | "human" | "undead" | "default" |
| checked | boolean (bindable) | false |
| disabled | boolean | false |
| id | string | — |