Components
Reference for Scholar UI components.
Last updated: January 25, 2026
Scholar includes a library of reusable components for documentation and marketing pages.
Layout components
| Component | Path | Purpose |
|---|---|---|
Header |
components/layout/Header.astro |
Site header with navigation |
Footer |
components/layout/Footer.astro |
Multi-column footer |
DocsSidebar |
components/layout/DocsSidebar.astro |
Sticky documentation nav |
MobileDrawer |
components/layout/MobileDrawer.astro |
Navigation drawer for mobile |
UI components
| Component | Props | Description |
|---|---|---|
Button |
variant, href, size |
Primary, secondary, ghost buttons |
Badge |
variant |
Status and category labels |
Card |
title, description |
Content card with optional link |
Callout |
type, title |
Info, tip, warning, error boxes |
Section components
Marketing sections on the homepage:
Hero— above-the-fold with 3D canvas backgroundFeatures— feature grid with iconsStats— key metrics barLogoCloud— trusted-by logosTestimonials— social proof cardsCTA— conversion-focused call to actionPricingPreview— pricing tier overview
Usage example
---
import Button from '../components/ui/Button.astro';
---
<Button href="/docs" variant="primary">Get Started</Button>