Drawer

Attribute Type Documentation Default Value
Required selector_id * :string

identifier to toggle the modal

class :any
open :boolean

Forces the drawer to be open

end :boolean

Puts drawer to the right

rest :global
drawer_content :slot
Show slot attributes Hide slot attributes
class :any
<:drawer_content class="flex flex-col items-center justify-center">
  <!-- Page content here -->
  <label for="my-drawer-2" class="btn btn-primary drawer-button lg:hidden">
    Open drawer
  </label>
</:drawer_content>
drawer_side :slot
Show slot attributes Hide slot attributes
class :any
<:drawer_side class="h-full absolute">
  <.menu class="bg-base-200 text-base-content min-h-full w-80 p-4">
    <!-- Sidebar content here -->
    <:item><a>Sidebar Item 1</a></:item>
    <:item><a>Sidebar Item 2</a></:item>
  </.menu>
</:drawer_side>
inner_block :slot