Skip to content
Eskais UI

Data

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.

Installation

npx shadcn@latest add @eskais/dependency-chips
Brings alongstatus-pill

Usage

Import
import { DependencyChips } from "@/components/ui/dependency-chips"

API reference

DependencyChips

Takes Omit<ComponentProps<"ul">, "children" | "onSelect" | "aria-label" | "aria-labelledby"> &.

Other exports

type DependencyChiptype DependencyChipsProps

Accessibility

  • 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.