1. framework components
  2. app bar

App Bar

A header element for the top of your page layout.

Skeleton

Centered

Control the layout using a grid-cols-* utility class.

Headline

Extended

Move the <AppBar.Headline> to a new row within the root.

Headline

Responsive

Modify the layout based on responsive breakpoints.

Headline

Anatomy

Here’s an overview of how the AppBar component is structured in code:

import { AppBar } from '@skeletonlabs/skeleton-react'; export default function Anatomy() { return ( <AppBar> <AppBar.Toolbar> <AppBar.Lead /> <AppBar.Headline /> <AppBar.Trail /> </AppBar.Toolbar> </AppBar> ); }

API Reference

Root

PropDefaultType
element((attributes: HTMLAttributes<"header">) => Element) | undefined

Render the element yourself

Toolbar

PropDefaultType
element((attributes: HTMLAttributes<"div">) => Element) | undefined

Render the element yourself

Lead

PropDefaultType
element((attributes: HTMLAttributes<"nav">) => Element) | undefined

Render the element yourself

Headline

PropDefaultType
element((attributes: HTMLAttributes<"div">) => Element) | undefined

Render the element yourself

Trail

PropDefaultType
element((attributes: HTMLAttributes<"nav">) => Element) | undefined

Render the element yourself

View page on GitHub