Yes. It adheres to the WAI-ARIA design pattern.
Installation
Section titled “Installation”pnpm dlx shadcn@latest add pxl-ui/registry/accordion
Install the following dependencies:
pnpm add @base-ui/react
Copy and paste the following code into your project.
Update the import paths to match your project setup.
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger,} from "@/components/ui/pxl/accordion"<Accordion defaultValue={["item-1"]}> <AccordionItem value="item-1"> <AccordionTrigger>Is it accessible?</AccordionTrigger> <AccordionContent> Yes. It adheres to the WAI-ARIA design pattern. </AccordionContent> </AccordionItem></Accordion>Composition
Section titled “Composition”Use the following composition to build an Accordion:
Accordion├── AccordionItem│ ├── AccordionTrigger│ └── AccordionContent└── AccordionItem ├── AccordionTrigger └── AccordionContentMultiple
Section titled “Multiple”Use the multiple prop to allow multiple items to be open at the same time.
Yes. Pass the multiple prop to allow more than one item open at once.
Each item tracks its own open state independently.
Disabled
Section titled “Disabled”Use the disabled prop on AccordionItem to disable individual items.
API Reference
Section titled “API Reference”See the Base UI documentation for more information.