DaisyUIComponents.Sidebar (DaisyUIComponents v0.8.6)

View Source

Sidebar component

Summary

Functions

Sidebar is a LiveComponent, it handles expanded and open states

Functions

sidebar(assigns)

Sidebar is a LiveComponent, it handles expanded and open states

Attributes

  • id (:string) (required) - identifier to toggle the sidebar.
  • class (:any) - Defaults to nil.
  • open (:boolean) - Forces the sidebar to be open. Defaults to nil.
  • expanded (:boolean) - Sidebar expand width. Defaults to false.
  • Global attributes are accepted.

Slots

  • content (required) - Accepts attributes:
    • class (:any)
  • item - Accepts attributes:
    • path (:string)
    • method (:any)
    • active (:boolean)
    • icon (:string)