@wix/design-system
Version:
@wix/design-system
30 lines (27 loc) • 1.12 kB
Markdown
### dataHook
- type: string
- description: Applied as data-hook HTML attribute that can be used in the tests
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
- internal
### type
- type: "checkbox" | "radio" | "toggle"
- description: A type can be ether radio, checkbox, or toggle, which will effect the way an accordion item is selected
- default: 'radio'
### verticalPadding
- type: "tiny" | "small" | "medium"
- description: Extra space on top and bottom of selectable accordion item
### items
- type: SelectableAccordionItemProps[]
- description: An array of Accordion items:
- `title`: A title of the item
- `subtitle`: An optional second row of the header
- `content`: A content of the item
- `initiallyOpen`: Whether the item is initially open
- `open`: Whether the item is open
- `disabled`: Whether the item is disabled
- `onClick`: A callback which is invoked when item's selection is changed
### onSelectionChanged
- type: (selectedIds: number[]) => void
- description: A callback which is invoked every time the selection is changed