Skip to content

Disclosure

The BDisclosure component is used to hide parts of the flow. Internally it uses BTransitionExpand to handle smooth transitioning to any height.

Normally hidden

Normally shown

Add the default-open prop to have it open by default

the not so hidden message!
more!

and some

The label slot

BDisclosure has a label slot that can be used to customize the label & content inside the button. The slot has access to the open prop to allow for conditional rendering by state.

Accessability

BDisclosure is based on the disclosure component from @headless-ui/vue and has all the right aria properties handled

Not really.