Collapsible

Attribute Type Documentation Default Value
Required id * :string
open :boolean
default_open :boolean false
on_open_change :any
animation_duration :integer 200
class :any []
rest :global
Required inner_block * :slot
<.collapsible_trigger>
  <.button variant="ghost" size="sm">Toggle</.button>
</.collapsible_trigger>
<.collapsible_content>
  <div class="rounded-md border px-4 py-3 text-sm">
    This content is visible by default.
  </div>
</.collapsible_content>