Card Icon Accordion
Collapsible content panels with circular icon containers, main titles, descriptive subtitles, and chevron indicators. Perfect for React applications requiring premium section headers with Next.js integration and TypeScript support.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/accordion-09.json
npx shadcn@latest add https://www.shadcn.io/registry/accordion-09.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/accordion-09.json
bunx shadcn@latest add https://www.shadcn.io/registry/accordion-09.json
Features
- Circular icon containers with bordered styling for enhanced visual prominence and branding
- Combined layout elements including icon, title, subtitle, and chevron in a cohesive design
- Content indentation alignment with proper spacing using margin and padding utilities
- Optional icon rendering with conditional display based on prop availability
- Typography hierarchy with distinct font weights and sizing for information structure
- shadcn/ui integration using consistent design tokens and Tailwind CSS styling
Use Cases
This free open source React component works well for:
- Dashboard sections - Feature panels with branded icons and descriptions built with Next.js
- Service categories - Premium service offerings with visual branding using TypeScript
- Account settings - User preferences with clear iconography for React applications
- Feature showcases - Product capabilities with professional presentation using Tailwind CSS
API Reference
Accordion09
Prop | Type | Default | Description |
---|---|---|---|
type | 'single' | 'multiple' | required | Whether single or multiple items can be expanded |
collapsible | boolean | false | Whether expanded items can be collapsed |
defaultValue | string | string[] | undefined | Default expanded item(s) |
value | string | string[] | undefined | Controlled expanded item(s) |
onValueChange | (value: string | string[]) => void | undefined | Callback when expanded items change |
Accordion09Item
Prop | Type | Default | Description |
---|---|---|---|
value | string | required | Unique identifier for this accordion item |
Accordion09Header
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | required | Content to wrap in accordion header |
Accordion09Trigger
Prop | Type | Default | Description |
---|---|---|---|
icon | LucideIcon | undefined | Optional Lucide React icon component to display in circular container |
title | ReactNode | required | Main title text to display in the trigger |
subtitle | ReactNode | undefined | Optional subtitle text to display below title |
Accordion09Content
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | required | Content to display when expanded |
Implementation Notes
- Icons are rendered in circular containers with
size-10
and border styling - Content indentation with
ms-3 ps-10
aligns with icon container positioning - Uses flexbox layout with proper gap spacing for icon, text, and chevron alignment
- Font weight differentiation: semibold for title, normal for subtitle
- Focus ring and keyboard navigation built-in for accessibility compliance
- Compatible with shadcn/ui design system and Tailwind CSS utility classes
Subtitle Plus Accordion
Collapsible content panels with main titles, descriptive subtitles, and plus/minus indicators. Perfect for React applications requiring detailed section headers with animated controls and Next.js integration and TypeScript support.
Card Plus Accordion
Collapsible content panels with circular icon containers, main titles, descriptive subtitles, and plus/minus indicators. Perfect for React applications requiring premium section headers with animated controls and Next.js integration and TypeScript support.