Layouts
Toggle sidebar

Header

A full-width top navigation layout for your application.

Inset main

Add inset to flux:main to place your content in a bordered panel with rounded corners.

On large screens, content scrolls inside the panel, keeping its border and the space around it visible. On smaller screens, the panel becomes full width and the page scrolls normally.

Set the background around the panel on your layout and header. Add lg:mt-0 to the main to remove the margin below the header.

Add container to center the content inside the full-width panel. Keep the header and main as direct siblings so the panel can adjust to the header's height.

Secondary sidebar

Use a sidebar for secondary navigation.

Reference

flux:header

Prop
Description
sticky
When present, makes the header sticky when scrolling.
container
When present, constrains the header content to a container width.
Slot
Description
default
Content to display within the header, typically including branding, navigation, and user profile elements.
CSS
Description
class
Additional CSS classes applied to the header. Common uses: bg-zinc-50, border-b, sticky, etc.

flux:sidebar.toggle

Attribute
Description
icon
The icon to display in the toggle button (e.g., bars-2, x-mark).
inset
Positioning of the toggle button (e.g., left).
CSS
Description
class
Additional CSS classes applied to the toggle button. Common uses: lg:hidden to show only on mobile.

flux:main

Prop
Description
inset
Displays the main content in a bordered surface with rounded corners and outer gutters on large screens. The layout fills the viewport and the main scrolls internally. On smaller screens, the main is full width and uses normal page scrolling.
container
When present, constrains the main content to a container width. With inset, the content is centered inside the full-width surface.
Slot
Description
default
Content to display within the main content area.
Copyright © 2026 Wireable LLC ·Terms of Service
Built with by
Caleb Porzio and Hugo Sainte-Marie