SusChip

Compact tag / filter — label, icons, closable and selected states.
Package
SusKit · Atoms (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Label | Prop<string> | "" | v-model |
PrependIcon | Prop<string> | "" | v-model |
AppendIcon | Prop<string> | "" | v-model |
Closable | Prop<bool> | false | v-model |
Disabled | Prop<bool> | false | v-model |
Variant | Prop<string> | "tonal" | v-model |
Color | Prop<string> | "primary" | v-model |
Size | Prop<string> | "default" | v-model |
Selected | Prop<bool> | false | v-model |
Slots
| Name |
|---|
(default) |
Events
| Name | Field | Payload |
|---|---|---|
Close | OnClose | — |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
keyboard-focussus-chipsus-chip__append-iconsus-chip__closesus-chip__prepend-iconsus-chip__textsus-chip--closablesus-chip--dangersus-chip--disabledsus-chip--elevatedsus-chip--filledsus-chip--flatsus-chip--infosus-chip--outlinedsus-chip--primarysus-chip--secondarysus-chip--selectedsus-chip--size-largesus-chip--size-smallsus-chip--size-x-smallsus-chip--successsus-chip--textsus-chip--tonalsus-chip--warningsus-slotunity-labelunity-text-element
Usage
xml
<template>
<sus:SusChip Label="Legendary"
Variant="tonal"
Color="warning"
PrependIcon="star"
Closable="true"
@close="OnRemove" />
</template>
<script>
void OnRemove() { /* … */ }
</script>csharp
var chip = new SusChip();
chip.Label.Value = "Filter";
chip.Variant.Value = "tonal";
chip.Color.Value = "primary";
chip.Selected.Value = true;
chip.OnClose += () => { /* … */ };Variant
filled · elevated · tonal · outlined · flat · text