A clickable card that navigates on click. Nested interactive elements work independently.
A clickable card that navigates on click. Nested interactive elements work independently.
A clickable card raised with `elevation="med"` so the shadow signals the whole surface is interactive.
Logo bento with a dark featured case study tile, a short quote tile and smaller logo tiles.
A split section for a clinic or care app. One side carries the heading, three ruled benefit lines and two buttons. The other is a muted stage where an appointment card, a video visit card and a prescription card step sideways and tuck under each other, stacking in a single column on phones.
Team section of manila time cards in a steel rack: pull one and it slides out with a stapled portrait and the hour stamped in. Free React and HTML code.
A retention heatmap with weekly signup cohorts as rows, weeks since signup as columns, shaded cells, a shade legend, and a methodology note.
An accordion group with three collapsible sections in single mode: opening one closes the others.
A React collapsible on Base UI for expand and collapse sections, sidebar groups, and show more previews that fade long content until opened.
Manage the open section from parent state, so something other than a click can move it: a URL parameter, a form jumping to the step that failed validation, or the Previous/Next controls shown here. onChange hands back the whole open value.
Several sections open at once, for comparing across them — feature lists, pricing tiers. One Collapsible per Card, so each trigger keeps its own large type: it is the heading of its surface, not a row in a list.
Only one section open at a time, so a single body of content competes for attention. Use defaultValue to pre-expand whichever section a first-time reader needs. Each Collapsible owns a Section, so its trigger is that section heading.
A flat list on the page background with hand-placed Dividers, for detail panels and sidebars where cards would add too much weight. Rows, so the triggers step down to body-semibold and a supporting metadata line sits under each answer.
The Advanced options disclosure at the foot of a form that says how many hidden settings were changed and can start open to reveal an error.
Card Collapsible using shadcn Collapsible in a card container.
Card with Icon Header using shadcn Collapsible in a card container.
Nested Card Content using shadcn Collapsible in a card container.
Card with Badge using shadcn Collapsible in a card container.
Subtle Card Collapsible using shadcn Collapsible in a card container.
CollapsibleGroup coordinates its Collapsible children: with type="single", opening one closes the others. No state or handlers in the example — the group owns which value is open and each child only declares its own. One Collapsible per Card, so each trigger keeps its default large type as the heading of its own surface.
Outlined Collapsible using shadcn Collapsible.
Warning Outline using shadcn Collapsible.
Info Box Outline using shadcn Collapsible.
Dashed Outline using shadcn Collapsible.
Simple Collapsible using shadcn Collapsible.
Showing 697–720 of 1,646