Layouts
Toggle sidebar

Header

A full-width top navigation layout for your application.

Inset main

Add inset to Main to place your content in a bordered panel with rounded corners.

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.

Secondary sidebar

Use a sidebar for secondary navigation.

Reference

Prop
Description
sticky
When present, makes the header sticky when scrolling.
container
When present, constrains the header content to a container width.
CSS
Description
className
Additional CSS classes applied to the header. Common uses: bg-zinc-50, border-b, sticky, etc.
Attribute
Description
data-flux-header
Applied to the root element for styling and identification.

Sidebar.Toggle

Button that opens and closes the sidebar from anywhere on the page, such as a header menu button, accepting all Button props except href.

Prop
Description
icon
The icon to display in the toggle button (e.g., Bars2Icon, XMarkIcon).
inset
Positioning of the toggle button (e.g., left).
CSS
Description
className
Additional CSS classes applied to the toggle button. Common uses: lg:hidden to show only on mobile.

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.
Attribute
Description
data-flux-main
Applied to the root element for styling and identification.

Spacer

Fills the free space in a flex row or column, such as to push items to the end of a header.

Copyright © 2026 Wireable LLC ·Terms of Service
Built with by
Caleb Porzio and Hugo Sainte-Marie