SwitchIcon
Icon toggle switch component for switching between two visual states represented by icons.
Basic Usage
vue
<TSwitchIcon :icon="IconHeart" :active-icon="IconHeart" />Custom Icons
API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
model-value | boolean | false | Toggle state |
icon | Component | — | Default icon |
active-icon | Component | — | Active state icon |
color | string | — | Default icon color |
active-color | string | — | Active icon color |
size | number | 24 | Icon size |
Emits
| Event | Parameters | Description |
|---|---|---|
update:model-value | value: boolean | State changed |