<tap-tag>
Tag component. Used for marking and categorizing items, supporting preset colors, solid/reverse styles, and closable action.
Example
Loading...
<tap-tag> Default Tag </tap-tag> <tap-tag .color=${"positive"}> Positive </tap-tag> <tap-tag .color=${"informative"}> Informative </tap-tag> <tap-tag .color=${"notice"}> Notice </tap-tag> <tap-tag .color=${"negative"}> Negative </tap-tag> <tap-tag .color=${"informative"} .type=${"reverse"}> Reverse </tap-tag> <tap-tag .closable=${true}> Closable </tap-tag>
API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type | Description |
|---|---|---|---|
closable(closable) |
Yes | boolean |
|
color(color) |
Yes | StringList<PresetColor> |
|
modemode |
Yes | 'solid' | 'reverse' |
@deprecated |
type(type) |
Yes | 'solid' | 'reverse' |
|
small(small) |
Yes | boolean |
|
close |
Emitter<null> |
Other
| Type | Value |
|---|---|
| Event | close |
| Slot | unnamed |
