Collapsible
An interactive component which expands/collapses a panel. Based on Radix Vue.
Component Features
- 🛠️ Fully Configurable: Easily control the expanded and collapsed states.
- 📐 Multiple Sizes: Supports all standard sizes (
xs,sm,md,lg,xl,2xl,default). - 🎨 Customizable: Replace the default icon or customize the trigger easily.
- ⌨️ Accessible: Full keyboard support and screen reader accessible out of the box.
- 🎭 Theme Customization: Fully supports global theme configuration via
BrConfigProvider.
Basic Usage
The most basic collapsible usage.
Sizes
You can change the size of the collapsible component using the size prop. It supports all sizes from the global configuration (xs, sm, md, lg, xl, 2xl, default).
Custom Icon
Use the icon slot on BrCollapsibleTrigger to customize the expand/collapse icon.
Disabled
Use the disabled prop to prevent the user from interacting with the collapsible.
Theme Customization
Combined with BrConfigProvider, you can globally override the default styles of the component.