children | Node | Required | The “body” of the section; that is, any content that exists outside the <header> element but inside the <section> element. |
title | Node | Required | Content of the section heading. Must not contain only whitespace because concise yet descriptive headings are extremely important to screen readers. If this needs to be visually hidden, set the titleIsHidden property to true. |
className | String | | Custom classes to be added to the wrapping <section> . |
collapseLabel | String | 'Collapse' | Sets the button’s aria-label attribute when expanded. |
expanded | Boolean | true | When false , the children nodes (body content) will be hidden. |
expandLabel | String | 'Expand' | Sets the button’s aria-label attribute when collapsed. |
headerClassName | String | | Custom classes to be added to the <header> . |
headingClassName | String | | Custom classes to be added to the <h#> tag, where # is the headingLevel. |
headingLevel | Number | 2 | Sets the semantic heading level for the section heading: <h2> . Allowable values are 2 through 6 . (<h1> headings are managed by the framework itself.) |
iconName | String | | If set, an icon will be displayed to the left of the title text (and will be visible even when titleIsHidden is true ). A list of available icons and their corresponding names can be found at Available Icons. |
ref | Ref or Function | | Attach a ref to the <section> element. |
titleIsHidden | Boolean | false | If true , the title text will be hidden from sighted readers but will remain accessible to screen readers. |