CollapseButton (Astro)
CollapseButton (Astro)
Display a button that toggles a collapsed element.
Astro Only Documentation Below
The documentation below covers how to use the
<CollapseButton />
Astro Component from choco-astro.
Overview
The <CollapseButton />
will display a button with a toggle. When clicked, the button will expand a collapsible element.
General Usage
The default btnColor
of the <CollapseButton />
is primary
and does not need to be passed in.
Primary Button
Success Button
Danger Button
Astro
Open By Default
To open the collapsible element on load, pass in isActive: true
to the content.
Primary Button open on load.
Astro