0.1.7 • Published 9 months ago

@phase2/outline-accordion v0.1.7

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
9 months ago

outline-accordion

Accordion Component

Properties

PropertyAttributeTypeDefaultDescription
allOpenallOpenbooleanfalseSet to 'true' to open all panels at once. Specifically for enhanced editor experience.
cleancleanbooleanfalseSets to 'clean' variant
hasLabelboolean
isMobile() => "mobile" \| null"() => (this.mobileController.isMobile ? 'mobile' : null)"
panelsOutlineAccordionPanel[]Reference to in panels slot.
singlePanelsingle-panelbooleanfalseSet to 'true' to create an accordion that can only have one panel open at a time.
slotsSlotController"new SlotController(this, false)"

Methods

MethodType
handleKeyboardNav(event: KeyboardEvent): void

Slots

NameDescription
label: The title text for the accordion component.