Table Left Chevron Accordion
Collapsible content panels with table-style borders and left-aligned chevron indicators. Perfect for React applications requiring tabular navigation with seamless row connections and Next.js integration and TypeScript support.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/accordion-17.json
npx shadcn@latest add https://www.shadcn.io/registry/accordion-17.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/accordion-17.json
bunx shadcn@latest add https://www.shadcn.io/registry/accordion-17.json
Features
- Table-style left chevron design combining connected borders with navigation-style indicators
- Left-aligned layout with chevron positioning and content indentation for sidebar-like appearance
- Negative spacing layout with
-space-y-px
creating seamless table-like row connections - Enhanced focus management with z-index layering and ring visibility controls
- Navigation aesthetics optimized for menu-like interfaces within table presentation
- shadcn/ui integration using consistent design tokens and Tailwind CSS styling
Use Cases
This free open source React component works well for:
- Navigation tables - Menu structures with table presentation and left indicators built with Next.js
- Data hierarchies - Organized information with navigation-style controls using TypeScript
- Settings tables - Configuration options in tabular format with left chevrons for React applications
- Menu databases - Category-based navigation with table organization using Tailwind CSS
API Reference
Accordion17
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 |
Accordion17Item
Prop | Type | Default | Description |
---|---|---|---|
value | string | required | Unique identifier for this accordion item |
Accordion17Trigger
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | required | Content to display in the trigger button |
Accordion17Content
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | required | Content to display when expanded |
Implementation Notes
- Uses
[&>svg]:-order-1
to position chevron before text content in table layout - Content indentation with
ps-7
ensures proper visual hierarchy alignment with left chevron - Combines table-style design with left-aligned chevron for navigation aesthetics
- Uses
-space-y-px
for negative spacing creating seamless table-like row connections - Focus states managed with
has-focus-visible:z-10
ensuring proper layering in table layout - Compatible with shadcn/ui design system and Tailwind CSS utility classes
Table Plus Accordion
Collapsible content panels with table-style borders and animated plus/minus indicators. Perfect for React applications requiring tabular data with seamless row connections and Next.js integration and TypeScript support.
Table Left Plus Accordion
Collapsible content panels with table-style borders and left-aligned plus/minus indicators. Perfect for React applications requiring tabular navigation with animated controls and Next.js integration and TypeScript support.