--- title: Accordion description: Add Accordions to your documentation preview: accordion --- ## Usage Based on [Radix UI Accordion](https://www.radix-ui.com/primitives/docs/components/accordion), useful for FAQ sections. ```tsx import React from 'react'; import { Accordion, Accordions } from 'fumadocs-ui/components/accordion'; My Content ; ``` ### Accordions {/* */} ### Accordion {/* */} ### Linking to Accordion You can specify an `id` for accordion. The accordion will automatically open when the user is navigating to the page with the specified `id` in hash parameter. ```mdx My Content ``` > The value of accordion is same as title by default. When an id presents, it will be used as the value instead.