Navbar#

Navbar lays out a horizontal bar with three named regions — start, center and end — each rendered only when you fill its slot. The bar takes the base-100 background unless you pass your own.

Import#

TSX
import { Navbar } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

Three Regions#

TSX
Loading preview...

Coloured Navbar#

background accepts any theme colour and applies the matching content colour.

TSX
Loading preview...

Props#

Navbar accepts the shared box styling props, so chrome is set with props rather than utility classes.

PropTypeDefaultDescription
backgroundBackgroundColor'base-100'Theme background (base-100error); sets the matching content colour
paddingSpacing-Padding — a scale value or { x, y, top, … }
marginSpacing-Margin
roundedRadiusValue | boolean-Border radius; true is the theme box radius
widthSizeValue-Width preset (full, 1/2, …) or a CSS length
heightSizeValue-Height preset or CSS length
classstring-Additional CSS classes

Slots#

SlotDescription
startLeft region (navbar-start)
centerMiddle region (navbar-center)
endRight region (navbar-end)