"use client"
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"
import { SectionHeading } from "@/components/ui/section-heading"
import { ComponentContainer } from "@/components/ui/component-container"
import { cn } from "@/lib/utils"
interface AccordionSectionProps {
className?: string
minimal?: boolean
}
export function AccordionSection({ className, minimal = false }: AccordionSectionProps) {
if (minimal) {
return (
Accordion
Is it accessible?
Yes. It adheres to the WAI-ARIA design pattern.
)
}
return (
Is it accessible?
Yes. It adheres to the WAI-ARIA design pattern.
Is it styled?
Yes. It comes with default styles that matches your theme.
Is it animated?
Yes. It's animated by default, but you can disable it if you prefer.
`}
>
Is it accessible?
Yes. It adheres to the WAI-ARIA design pattern.
Is it styled?
Yes. It comes with default styles that matches your theme.
Is it animated?
Yes. It's animated by default, but you can disable it if you prefer.
Can I open multiple items?
Yes. Set the type to "multiple" to allow multiple items to be open at once.
Is it keyboard accessible?
Yes. You can navigate through items using arrow keys and toggle with Enter or Space.
`}
>
Can I open multiple items?
Yes. Set the type to "multiple" to allow multiple items to be open at once.
Is it keyboard accessible?
Yes. You can navigate through items using arrow keys and toggle with Enter or Space.
Usage
{`import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"`}
)
}