<:import src="base.htm" />
<:define tag="bs-accordion:div"
class="accordion"
// parameters
::exclusive=${true} // one open panel at a time
::flush=${false}
/*
private: the id the items point at. Owned here rather than
rebuilt there, so the two can't drift apart
*/
:_id=${`bs-accordion-${$id}`}
id=${_id}
:class-accordion-flush=${flush}
>
<:slot />
<:define tag="bs-accordion-item:div"
class="accordion-item"
// parameters
::title=${''}
::open=${false}
// private: the accordion this item was slotted into, if any
:_parent=${$host && $host.exclusive ? $host._id : null}
:_id=${`bs-accordion-item-${$id}`}
:_headingId=${`bs-accordion-heading-${$id}`}
>