Component Anatomy
A table of the parts a compound component is built from.
An anatomy table lists the parts of a compound component. Each name links to the heading of the same name further down the page, such as ### Accordion.Root.
| Name | Required | Description |
|---|---|---|
| Accordion.Root | true | Holds the state of every view. |
| Accordion.View | true | One section that opens and closes. |
| Accordion.Trigger | Opens and closes its view. | |
| Accordion.Content | Shows while its view is open. |
Usage
::component-anatomy
---
parts:
- name: Accordion.Root
required: true
description: Holds the state of every view.
children:
- name: Accordion.View
description: One section that opens and closes.
---
::