Chip
Reusable chip component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<Chip label="Chip" variant="default" />Legacy mount name: data-component="Chip".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
label | string | Optional | "Chip" |
variant | string | Optional | "default" |
class | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/Chip.wrn
component Chip {
props {
label = "Chip"
variant = "default"
class = ""
}
view { <span class="wire-badge wire-badge--{variant} wire-catalog-badge wire-catalog-badge--chip {class}">{label}<slot /></span> }
}