Erwähnung — component.mention
Erwähnung als Artefakt: Chip @Name für Quelle und ID (Personen, Kunden, Projekte, Produkte; Apps melden weitere Quellen an) mit Hover-Vorschau und Öffnen im Desktop-Fenster, Auswahlfeld mit Suche und globale Schnittstelle window.InvisibleMention (Suche, @-Picker für beliebige Eingabefelder, Chips be
Beispiele
Chip Kunde
Chip Person
@David SeligAuswahlfeld
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
mode | string: chip | field | search | "chip" |
type | string | "" |
id | string | "" |
label | string | "" |
app | string | "" |
icon | string | "" |
appIcon | string | "" |
avatar | string | "" |
color | string | "" |
iconOnly | boolean | false |
marker | string: | danger | warning | done | "" |
removeHref | string | "" |
removeLabel | string | "" |
types | string | "" |
name | string | "" |
fieldLabel | string | "" |
clearable | boolean | false |
multiple | boolean | false |
submitOnSelect | boolean | false |
selected | array | [] |
placeholder | string | "Person, Kunde oder Projekt suchen ..." |
Events & Slots
Events: open, select, clear, remove
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--mention-accent | var(--color-action-primary) |
--mention-surface | color-mix(in srgb, var(--color-action-primary) 12%, transparent) |
--mention-tag-color | var(--color-text-muted) |
--mention-symbol | var(--mention-area, var(--color-action-primary)) |
Genutzte Design-Tokens
border.emphasis border.hairline color.action.primary color.border.default color.border.strong color.border.subtle color.status.danger color.status.info color.status.warning color.surface.default color.surface.hover color.surface.inverse color.surface.overlay color.surface.sunken color.text.default color.text.muted control.height easing.standard elevation.overlay focus.ring-color focus.ring-offset focus.ring-width font.family.default font.family.mono form.background form.border form.border-focus form.placeholder layer.dropdown leading.tight radius.control radius.full radius.overlay radius.sm shadow.overlay-large size.05 size.1 size.10 size.12 size.16 size.2 size.3 size.32 size.4 size.5 size.6 size.8 text.2xs text.lg text.md text.sm text.xs weight.medium weight.regular weight.semibold