warcraftcn warcraftcn/ui

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

PropTypeDefault
faction"default" | "orc" | "elf" | "human" | "undead""default"
checkedboolean (bindable)false
disabledbooleanfalse
idstring