AccordionHeader API

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

Props

PropsTypeDescriptionDefault
childrenReact.ReactNodeThe content of the accordion header._
as?'h2' | 'h3' | 'h4' | 'h5' | 'h6'The HTML heading level / tag to use for the headerh3
onClick?functionCallback function that is called when the header is clicked._
buttonRef?React.RefObject<HTMLButtonElement>Used to set the ref of the button element._