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>
  <!-- Page content here -->
  <label for="my-drawer-4" class="drawer-button btn btn-primary">Open drawer</label>
</:drawer_content>
drawer_side :slot
Show slot attributes Hide slot attributes
class :any
<:drawer_side>
  <.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