PyBlade/ui
Menu⌄
DocsBlocksSidebar layout

Sidebar layout

An application shell: a sidebar with brand, navigation, a collapsible group and the user, beside a header and your page.

Alpine.jsdepends on sidebardepends on collapsible1 file

Installation

pyblade-ui add sidebar-layout

Usage

The tag <pb-blocks.sidebar-layout> is available in all your templates.

<pb-blocks.sidebar-layout :open="sidebar_open" title="Dashboard">
  <p>Your page</p>
</pb-blocks.sidebar-layout>

Props

PropDefault
openTrue
title'Dashboard'
collapsible'icon'
variant'sidebar'

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.