Grail Layout Left Aside
GrailLayoutLeftAside is a headless container for the left aside section of a GrailLayout. It typically contains navigation menus, filters, or supplementary content.
GrailLayoutLeftAside is a headless container for the left aside section of a GrailLayout. It typically contains navigation menus, filters, or supplementary content.
<aside class="grail-layout-left-aside">Left sidebar</aside><script lang="ts">
import GrailLayoutLeftAside from "./GrailLayoutLeftAside.svelte";
</script>
<GrailLayoutLeftAside>
<nav aria-label="Primary navigation">
<a href="/">Home</a>
<a href="/about">About</a>
</nav>
</GrailLayoutLeftAside>
// In your Svelte component:
import GrailLayoutLeftAside from "lily-design-system-svelte-headless/components/GrailLayoutLeftAside/GrailLayoutLeftAside.svelte";
<GrailLayoutLeftAside>
<!-- content -->
</GrailLayoutLeftAside>
<GrailLayout>
<GrailLayoutTopHeader>...</GrailLayoutTopHeader>
<GrailLayoutLeftAside>
<TreeNav label="Sections">
<TreeList>
<TreeListItem><TreeLink href="/patients">Patients</TreeLink></TreeListItem>
<TreeListItem><TreeLink href="/appointments">Appointments</TreeLink></TreeListItem>
</TreeList>
</TreeNav>
</GrailLayoutLeftAside>
<GrailLayoutCenterMain>...</GrailLayoutCenterMain>
<GrailLayoutRightAside>...</GrailLayoutRightAside>
<GrailLayoutBottomFooter>...</GrailLayoutBottomFooter>
</GrailLayout>
children: slot (required) -- content to render inside the left aside...restProps: unknown -- additional attributes spread onto the <div> element<aside> exposes a complementary landmark — give it an aria-label if a page has more than one aside so screen readers can distinguish themcomplementary role from the <aside> 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-left-aside class for targeting. No default styles are included — this is a fully headless component.
<aside> element with class grail-layout-left-asideGrailLayoutLeftAside is used as a child of GrailLayout. Place semantic <nav> or <aside> 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-right-aside — grail layout right aside sidebar with <aside> taggrail-layout-top-header — grail layout top header full width with <header> tag<aside> element for the left aside sectionrestProps onto the div for consumer customizationGenerated from this component's canonical metadata — the machine-checked source the implementations are held to.
<aside> element exposes a complementary landmarkaria-label (or aria-labelledby) to distinguish from other asides on the pagechildren: slot (required) -- content to render inside the left aside...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>
```