Join our Discord community
Accordion

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

Loading component...

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

PropTypeDefaultDescription
type'single' | 'multiple'requiredWhether single or multiple items can be expanded
collapsiblebooleanfalseWhether expanded items can be collapsed
defaultValuestring | string[]undefinedDefault expanded item(s)
valuestring | string[]undefinedControlled expanded item(s)
onValueChange(value: string | string[]) => voidundefinedCallback when expanded items change

Accordion17Item

PropTypeDefaultDescription
valuestringrequiredUnique identifier for this accordion item

Accordion17Trigger

PropTypeDefaultDescription
childrenReactNoderequiredContent to display in the trigger button

Accordion17Content

PropTypeDefaultDescription
childrenReactNoderequiredContent 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