AccordionHeader API

API reference docs for theAccordionHeadercomponent. For examples and details on the usage of this component, visit the component demo page.

Props

Props

Type

Description

Default

children

React.ReactNode

The content of the accordion header.

_

as?

'h2' | 'h3' | 'h4' | 'h5' | 'h6'

The HTML heading level / tag to use for the header

h3

onClick?

function

Callback function that is called when the header is clicked.

_

buttonRef?

React.RefObject<HTMLButtonElement>

Used to set the ref of the button element.

_