API reference
@salmonui/buttons/tag-group
16 exported symbols: 3 functions, 9 interfaces and 4 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/buttons/tag-group';Functions
TagOne tag: .salmon-tag row with a single cell (label, icons, remove button).TagGroupA wrapping collection of tags: .salmon-tag-group (role="grid") of Tag rows, one tab stop, arrow keys mirrored in RTL.moveTagsMoves the entries whose value is in values to the insertion index toIndex of list (an index in the current order, before the moved entries are removed), keepin…
Interfaces
TagDragEndEventonTagDragEnd event on the source group.TagDragEventonTagDrag event, at most once per animation frame.TagDragStartEventonTagDragStart event; preventDefault() cancels the drag.TagDropEventonTagDrop event, fired on the receiving group of a cross-group drop.TagGroupPropsTagPropsTagRemoveEventonRemove event: the remove button, or Delete / Backspace on the focused tag.TagReorderEventonReorder event; apply it with moveTags(list, values, toIndex).TagSelectionEventonValueChange event: reason is 'toggle' or 'reset' (form reset).
Types
TagEventSourceTagSelectionModeTagSizeOne of three fixed metric sets (the Button sizes).TagToneColor role of a tag (the Button tones).