Dependency Chips
A named list of toned chips that truncate long labels, collapse past max into a +N chip, and become UI SDK Buttons agents can press when onSelect is set.
Example
Depends on
- 1 more
Press a chip to select it.
dependency-chips-demo.tsxCopy code
Installation
Copy code
Brings alongstatus-pill
Usage
ImportCopy code
API reference
DependencyChips
Takes Omit<ComponentProps<"ul">, "children" | "onSelect" | "aria-label" | "aria-labelledby"> &.
Other exports
type DependencyChiptype DependencyChipsPropsAccessibility
- A named list of chips that truncate long labels and collapse past max into a count.
Agent actions
With onSelect, chips become buttons agents can press.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.