Accordion

Add Accordions to your documentation

it is an optional component which won't be loaded by default.

Usage

Wrap accordions in the container, a type property is required by default.

Based on Radix UI Accordion.

import { Accordion, Accordions } from 'next-docs-ui/components/accordion'
 
<Accordions type="single" collapsible>
<Accordion title="My Title">
 
My Content
 
</Accordion>
</Accordions>

Accordions

PropTypeDefault
type
single | multiple
-
collapsible
boolean
-

Accordion

PropTypeDefault
title
string
-
disabled
boolean
false

Last updated on