Skip to content
Eskais UI

Layout

Collapsible

UI SDK Collapsible: disclosure with aria-expanded, animated height, controller support and a rotating chevron icon.

Example

  • Review the agent approval flow
  • Benchmark table rendering

Installation

npx shadcn@latest add @eskais/collapsible
npm packageslucide-react

Usage

Import
import {  Collapsible,  CollapsibleIcon,  CollapsiblePanel,  CollapsibleTrigger,  createCollapsibleController,} from "@/components/ui/collapsible"

API reference

CollapsibleIcon

Takes ChevronDownIcon.

Other exports

createCollapsibleController

Accessibility

  • A disclosure with aria-expanded on its trigger.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.