Collapsible

@peduarte starred 3 repositories

@radix-ui/primitives
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
<div class="flex items-center justify-between">
  <h4 class="text-sm font-semibold">@peduarte starred 3 repositories</h4>
  <.collapsible_trigger>
    <.button variant="ghost" size="sm">
      <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/></svg>
    </.button>
  </.collapsible_trigger>
</div>
<div class="rounded-md border px-4 py-3 font-mono text-sm">@radix-ui/primitives</div>
<.collapsible_content class={["space-y-2"]}>
  <div class="rounded-md border px-4 py-3 font-mono text-sm">@radix-ui/colors</div>
  <div class="rounded-md border px-4 py-3 font-mono text-sm">@stitches/react</div>
</.collapsible_content>