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
import { Navbar } from '@sigx/daisyui';
Basic Usage
Loading preview...
Three Regions
Loading preview...
Coloured Navbar
background accepts any theme colour and applies the matching content colour.
Loading preview...
Props
Navbar accepts the shared box styling props, so chrome is set with props rather than utility classes.
| Prop | Type | Default | Description |
|---|---|---|---|
background | BackgroundColor | 'base-100' | Theme background (base-100 … error); sets the matching content colour |
padding | Spacing | - | Padding — a scale value or { x, y, top, … } |
margin | Spacing | - | Margin |
rounded | RadiusValue | boolean | - | Border radius; true is the theme box radius |
width | SizeValue | - | Width preset (full, 1/2, …) or a CSS length |
height | SizeValue | - | Height preset or CSS length |
class | string | - | Additional CSS classes |
Slots
| Slot | Description |
|---|---|
start | Left region (navbar-start) |
center | Middle region (navbar-center) |
end | Right region (navbar-end) |
