@phase2/outline-accordion
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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.

/@phase2/outline-accordion/

    Package Sidebar

    Install

    npm i @phase2/outline-accordion

    Weekly Downloads

    17

    Version

    0.1.7

    License

    BSD-3-Clause

    Unpacked Size

    354 kB

    Total Files

    15

    Last publish

    Collaborators

    • nadavoid
    • grshane
    • dmuzyka
    • mkochendorfer
    • pschuelke
    • yuginaili
    • cclarkdev
    • febbraro
    • himerus
    • shaal