Skip to content

Component Anatomy

A table of the parts a compound component is built from.

View source View as Markdown

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.

NameRequiredDescription
Accordion.Root true Holds the state of every view.
Accordion.View true One section that opens and closes.
Accordion.TriggerOpens and closes its view.
Accordion.ContentShows 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.
---
::