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:

tsx
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

txt
w-full bg-surface-100-900 p-4 space-y-4
PropDefaultType
element((attributes: HTMLAttributes<"header">) => Element) | undefined

Render the element yourself

Toolbar

txt
grid items-center justify-between gap-4
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

txt
flex gap-2
PropDefaultType
element((attributes: HTMLAttributes<"nav">) => Element) | undefined

Render the element yourself

View page on GitHub