0.4.6 • Published 4 years ago
@bdt-component-library/accordion v0.4.6
Accordion Component
About
This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.
Description
Handles display of accordions according to style guide conventions.
API
prop | type | required | default | explanation |
---|---|---|---|---|
children | React node | yes | n/a | The components to render inside the accordion |
className | string | no | n/a | Adds an optional classname to the component |
variant | enum("h2", "h3", "h5", "h5") | no | "h3" | Changes typography style of the title prop |
isOpen | boolean | no | false | Determines open state of accordion |
title | string | no | undefined | Optional title for accordion |
id | string | no | n/a | Adds an optional id to the children wrapper in the component |
0.4.6
4 years ago
0.4.5
4 years ago
0.4.4
4 years ago
0.4.3
4 years ago
0.4.2
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.3.0
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.4
4 years ago
0.1.5
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago