Skeleton
Skeleton
Centered
Control the layout using a grid-cols-* utility class.
Headline
Headline
Extended
Move the <AppBar.Headline> to a new row within the root.
Headline
Headline
Responsive
Modify the layout based on responsive breakpoints.
Headline
Headline
Headline
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>
);
}<script lang="ts">
import { AppBar } from '@skeletonlabs/skeleton-svelte';
</script>
<AppBar>
<AppBar.Toolbar>
<AppBar.Lead />
<AppBar.Headline />
<AppBar.Trail />
</AppBar.Toolbar>
</AppBar>API Reference
Root
w-full bg-surface-100-900 p-4 space-y-4| Prop | Default | Type |
|---|---|---|
element | — | ((attributes: HTMLAttributes<"header">) => Element) | undefined Render the element yourself |
Toolbar
grid items-center justify-between gap-4| Prop | Default | Type |
|---|---|---|
element | — | ((attributes: HTMLAttributes<"div">) => Element) | undefined Render the element yourself |
Lead
| Prop | Default | Type |
|---|---|---|
element | — | ((attributes: HTMLAttributes<"nav">) => Element) | undefined Render the element yourself |
Headline
| Prop | Default | Type |
|---|---|---|
element | — | ((attributes: HTMLAttributes<"div">) => Element) | undefined Render the element yourself |
Trail
flex gap-2| Prop | Default | Type |
|---|---|---|
element | — | ((attributes: HTMLAttributes<"nav">) => Element) | undefined Render the element yourself |
Root
w-full bg-surface-100-900 p-4 space-y-4| Prop | Default | Type |
|---|---|---|
element | — | Snippet<[HTMLAttributes<"header">]> | undefined Render the element yourself |
Toolbar
grid items-center justify-between gap-4| Prop | Default | Type |
|---|---|---|
element | — | Snippet<[HTMLAttributes<"div">]> | undefined Render the element yourself |
Lead
| Prop | Default | Type |
|---|---|---|
element | — | Snippet<[HTMLAttributes<"nav">]> | undefined Render the element yourself |
Headline
| Prop | Default | Type |
|---|---|---|
element | — | Snippet<[HTMLAttributes<"div">]> | undefined Render the element yourself |
Trail
flex gap-2| Prop | Default | Type |
|---|---|---|
element | — | Snippet<[HTMLAttributes<"nav">]> | undefined Render the element yourself |