0.1.7 • Published 9 months ago
@phase2/outline-accordion v0.1.7
outline-accordion
Accordion Component
Properties
Property | Attribute | Type | Default | Description |
---|---|---|---|---|
allOpen | allOpen | boolean | false | Set to 'true' to open all panels at once. Specifically for enhanced editor experience. |
clean | clean | boolean | false | Sets to 'clean' variant |
hasLabel | boolean | |||
isMobile | () => "mobile" \| null | "() => (this.mobileController.isMobile ? 'mobile' : null)" | ||
panels | OutlineAccordionPanel[] | Reference to in panels slot. | ||
singlePanel | single-panel | boolean | false | Set to 'true' to create an accordion that can only have one panel open at a time. |
slots | SlotController | "new SlotController(this, false)" |
Methods
Method | Type |
---|---|
handleKeyboardNav | (event: KeyboardEvent): void |
Slots
Name | Description |
---|---|
label: The title text for the accordion component. |