Grail Layout Top Header
GrailLayoutTopHeader is a headless container for the top header section of a GrailLayout. It spans the full width of the layout and typically contains site branding, navigation, or a top bar.
GrailLayoutTopHeader is a headless container for the top header section of a GrailLayout. It spans the full width of the layout and typically contains site branding, navigation, or a top bar.
<header class="grail-layout-top-header">Header</header><script lang="ts">
import GrailLayoutTopHeader from "./GrailLayoutTopHeader.svelte";
</script>
<GrailLayoutTopHeader>
<header><h1>Site Header</h1></header>
</GrailLayoutTopHeader>
// In your Svelte component:
import GrailLayoutTopHeader from "lily-design-system-svelte-headless/components/GrailLayoutTopHeader/GrailLayoutTopHeader.svelte";
<GrailLayoutTopHeader>
<!-- content -->
</GrailLayoutTopHeader>
<GrailLayout>
<GrailLayoutTopHeader>
<Header label="Clinical Portal" />
</GrailLayoutTopHeader>
<GrailLayoutLeftAside>...</GrailLayoutLeftAside>
<GrailLayoutCenterMain>...</GrailLayoutCenterMain>
<GrailLayoutRightAside>...</GrailLayoutRightAside>
<GrailLayoutBottomFooter>...</GrailLayoutBottomFooter>
</GrailLayout>
children: slot (required) -- content to render inside the top header section...restProps: unknown -- additional attributes spread onto the <div> element<h1>-<h6> element instead.<header> exposes a banner landmark when used as the top-level page header so screen readers can navigate to it via landmark navigationbanner role from the <header> element when used as a top-level landmarkThis headless component renders semantic HTML. The consumer provides all visual styling — no CSS, animations, or layout assumptions are baked in.
The consumer provides all CSS styling. The component renders with a .grail-layout-top-header class for targeting. No default styles are included — this is a fully headless component.
<header> element with class grail-layout-top-headerGrailLayoutTopHeader is used as a child of GrailLayout. Place semantic <header> or <nav> elements inside for proper accessibility.
grail-layout — a responsive web design structure with header, left aside, center main, right aside, footergrail-layout-bottom-footer — grail layout bottom footer full width with <footer> taggrail-layout-center-main — grail layout center main content with <main> taggrail-layout-left-aside — grail layout left aside sidebar with <aside> taggrail-layout-right-aside — grail layout right aside sidebar with <aside> tag<header> element for the top header sectionrestProps onto the div for consumer customizationGenerated from this component's canonical metadata — the machine-checked source the implementations are held to.
<header> element exposes a banner landmark when used as a top-level page headerchildren: slot (required) -- content to render inside the top header section...restProps: unknown -- additional attributes spread onto the <div> element### Grail layout pattern: GrailLayout → GrailLayoutTop, GrailLayoutLeft, GrailLayoutCenter, GrailLayoutRight, GrailLayoutBottom
```tsx
<GrailLayout>
<GrailLayoutTopHeader>…</GrailLayoutTopHeader>
<GrailLayoutLeftAside>…</GrailLayoutLeftAside>
<GrailLayoutCenterMain>…</GrailLayoutCenterMain>
<GrailLayoutRightAside>…</GrailLayoutRightAside>
<GrailLayoutBottomFooter>…</GrailLayoutBottomFooter>
</GrailLayout>
```