Engram

Collapsible section

component

A titled disclosure: a tracked-uppercase header (with an optional count) that toggles its content.

Install

npx shadcn@latest add @engram/collapsible-section

Registry item: /r/collapsible-section.json — the machine-readable definition agents install from.

Example

Mask of FealtyWicked ImplementMecha Sentry Mask

Props

PropTypeDefaultDescription
title*ReactNodeSection heading.
countReactNodeRight-aligned count / summary (e.g. item count).
defaultOpenbooleantrueInitial open state when uncontrolled.
openbooleanControlled open state.
onOpenChange(open: boolean) => void
children*ReactNode
classNamestring

Own the code: shadcn add copies this component's source into your repo to read and edit directly. Extend without forking — edit the source, use asChild to swap the element, or pass the typed annotations prop for curated data.