View Source BitstylesPhoenix.Live.Sidebar (bitstyles_phoenix v2.5.0)
Components for rendering a sidebar layout powered by LiveView commands.
Summary
Functions
A sidebar close icon to be rendered on the open sidebar for closing the sidebar.
Renders a sidebar layout with LiveView commands.
A sidebar open icon to be rendered on the main content for opening the sidebar.
Functions
A sidebar close icon to be rendered on the open sidebar for closing the sidebar.
Attributes
label
- A screen reader label for the icon. Defaults to"Close"
.sidebar
- The reference to the sidebar it controls. This will be the sidebarid
. Theui_js_sidebar_layout/1
can provide this as a block argument in the small sidebar block.
Renders a sidebar layout with LiveView commands.
Supports all attributes and slots from BitstylesPhoenix.Component.Sidebar.ui_sidebar_layout/1
.
The small_sidebar
and main
/inner
blocks will additionally provide a block argument
with the sidebar context for ui_js_sidebar_open/1
and ui_js_sidebar_close/1
.
For examles see BitstylesPhoenix.Component.Sidebar.ui_sidebar_layout/1
.
A sidebar open icon to be rendered on the main content for opening the sidebar.
Attributes
label
- A screen reader label for the icon. Defaults to"Open sidebar"
.sidebar
- The reference to the sidebar it controls. This will be the sidebarid
. Theui_js_sidebar_layout/1
can provide this as a block argument in the main or inner block.