Grail Layout Right Aside
GrailLayoutRightAside is a headless container for the right aside section of a GrailLayout. It typically contains supplementary content, ads, related links, or contextual information.
GrailLayoutRightAside is a headless container for the right aside section of a GrailLayout. It typically contains supplementary content, ads, related links, or contextual information.
<aside class="grail-layout-right-aside">Right sidebar</aside><script lang="ts">
import GrailLayoutRightAside from "./GrailLayoutRightAside.svelte";
</script>
<GrailLayoutRightAside>
<aside aria-label="Related">
<h2>Related</h2>
<ul><li><a href="/r1">Related 1</a></li></ul>
</aside>
</GrailLayoutRightAside>
// In your Svelte component:
import GrailLayoutRightAside from "lily-design-system-svelte-headless/components/GrailLayoutRightAside/GrailLayoutRightAside.svelte";
<GrailLayoutRightAside>
<!-- content -->
</GrailLayoutRightAside>
<GrailLayout>
<GrailLayoutTopHeader>...</GrailLayoutTopHeader>
<GrailLayoutLeftAside>...</GrailLayoutLeftAside>
<GrailLayoutCenterMain>...</GrailLayoutCenterMain>
<GrailLayoutRightAside>
<h2>Quick links</h2>
<ul>
<li><a href="/help">Help</a></li>
<li><a href="/settings">Settings</a></li>
</ul>
</GrailLayoutRightAside>
<GrailLayoutBottomFooter>...</GrailLayoutBottomFooter>
</GrailLayout>
children: slot (required) -- content to render inside the right 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-right-aside class for targeting. No default styles are included — this is a fully headless component.
<aside> element with class grail-layout-right-asideGrailLayoutRightAside is used as a child of GrailLayout. Place semantic <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-left-aside — grail layout left aside sidebar with <aside> taggrail-layout-top-header — grail layout top header full width with <header> tag<aside> element for the right 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 right 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>
```