Capabilities Accordion
Ruled, expandable capability rows with oversized type, detail copy, and monospace tag chips. Each row expands in place to reveal a description and a set of small tag chips.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/capabilities-accordion.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/agency/agency21.tsx instead.
Usage
The file also exports agency21Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Agency21, agency21Demo } from "@/components/blocks/agency/agency21"; export default function Page() { return <Agency21 {...agency21Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | ReactNode | none | Section heading above the capability list. |
| description | string | none | Optional supporting copy under the heading. |
| capabilities | Capability[] | none | Expandable capability rows, each with a name, description, and tags. |
| className | string | none | Extra classes for the outer section element. |
Types
type Capability = { name: string; description: string; tags: string[] };
Behavior notes
- Expand/collapse is real, working expand/collapse implemented with native HTML <details>/<summary>, not React state, so this stays a Server Component with no "use client" directive.
- The chevron rotation is pure CSS (group-open:rotate-180 on the <details> element's open state), no JavaScript involved.
- All rows render collapsed by default and are independent of one another; opening one does not close the others.
More Agency Blocks
View all →case-study-hero
Case Study Hero
A case study header with project metadata grid, service tags, and featured image.
studio-manifesto
Studio Manifesto
Oversized editorial manifesto statement with emphasized phrases, principle chips and a founder signature.
studio-values
Studio Values
Studio values laid out with oversized ghost numerals, titles, descriptions and keywords.
how-we-think
How We Think
Sticky studio intro with a portrait beside a stack of numbered principles.
studio-team
Studio Team
A studio team grid of member portraits with names and roles.
awards-list
Awards List
Editorial list of studio awards by year with project and recognition details.