ki-chip-group
@kimen/elements/ki-chip-group- Source
- Agent reference
Put chips directly inside ki-chip-group and provide an accessible label.
An input group is exposed as a list. Other groups are exposed as labelled
groups. Chips inherit the group’s type unless they declare their own.
Use reorderable to show handles. Drag a handle, activate one handle then
another, or press Alt+Left/Right on a focused chip to move it. The group keeps
focus on the moved chip and announces its position. Localize the message with
reorder-announcement using the {label}, {position} and {total}
placeholders. Listen to ki-reorder to store the new order.
<ki-chip-group label="Recipients" type="input" reorderable focus-target="recipient"> <ki-chip value="ana" removable>Ana García</ki-chip> <ki-chip value="luis" removable>Luis</ki-chip></ki-chip-group><input id="recipient" aria-label="Add recipient">