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.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/accordion-10.json
npx shadcn@latest add https://www.shadcn.io/registry/accordion-10.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/accordion-10.json
bunx shadcn@latest add https://www.shadcn.io/registry/accordion-10.json
Features
- Circular icon containers with plus/minus combining visual branding with advanced animation sequences
- Complex animation layers including rotation, opacity transitions, and path transformations on plus icon
- Content indentation alignment with proper spacing using margin and padding utilities
- Premium visual design with bordered icon containers and professional typography hierarchy
- Optional icon rendering with conditional display based on prop availability
- shadcn/ui integration using consistent design tokens and Tailwind CSS styling
Use Cases
This free open source React component works well for:
- Premium dashboards - Feature panels with branded icons and animated controls built with Next.js
- Enterprise settings - Configuration sections with professional presentation using TypeScript
- Product showcases - Feature descriptions with visual hierarchy for React applications
- Service portfolios - Business offerings with clear branding using Tailwind CSS
API Reference
Accordion10
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 |
Accordion10Item
Prop | Type | Default | Description |
---|---|---|---|
value | string | required | Unique identifier for this accordion item |
Accordion10Header
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | required | Content to wrap in accordion header |
Accordion10Trigger
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 |
Accordion10Content
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | required | Content to display when expanded |
Implementation Notes
- Combines circular icon containers with complex plus/minus animation sequences
- Uses advanced CSS selectors for multi-layer animation effects on plus icon paths
- Content indentation with
ms-3 ps-10
ensures proper alignment with icon positioning - Icons are rendered in circular containers with
size-10
and border styling - Focus ring and keyboard navigation built-in for accessibility compliance
- Compatible with shadcn/ui design system and Tailwind CSS utility classes
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.
Card Accordion
Collapsible content panels with card-style borders and chevron indicators. Perfect for React applications requiring tab-like sections with Next.js integration and TypeScript support.