An interactive component that can be expanded or collapsed.
import { Collapsible } from '@fintech-sandpit/ui/react';
<Collapsible.Root defaultOpen>
<Collapsible.Indicator />
A collapsible is a component that allows you to show and hide content.
<Collapsible.Indicator />
Click the trigger button to toggle the visibility of the content.
<Collapsible.Indicator />
Yes! You can customize the appearance using CSS classes and style props.
import { Collapsible } from '@fintech-sandpit/ui/vue';
<Collapsible.Root default-open>
<Collapsible.Indicator />
A collapsible is a component that allows you to show and hide content.
<Collapsible.Indicator />
Click the trigger button to toggle the visibility of the content.
<Collapsible.Indicator />
Yes! You can customize the appearance using CSS classes and style props.
| Name | Type | Default | Description |
|---|
open | boolean | false | Controlled open state |
defaultOpen | boolean | false | Whether the collapsible is open by default |
disabled | boolean | false | Whether the collapsible is disabled |
| Name | Type | Default | Description |
|---|
open | boolean | false | Controlled open state |
default-open | boolean | false | Whether the collapsible is open by default |
disabled | boolean | false | Whether the collapsible is disabled |
| Name | Type | Description |
|---|
onOpenChange | (value: OpenChangeDetails) => void | Callback fired when the open state changes |
| Name | Type | Description |
|---|
open-change | (value: OpenChangeDetails) => void | Event emitted when the open state changes |
type OpenChangeDetails = {