Landing Page Components

These components are designed for full-width landing pages. Set layout: landing in your frontmatter to use them.

---
title: My Project
layout: landing
---

The landing layout removes the sidebar and table of contents, giving components the full page width.

Hero

The main banner at the top of a landing page.

PropTypeDescription
titleStringLarge heading text

Use HeroAction children for call-to-action buttons and include body text as the tagline.

<Hero title="My Project">
<HeroAction label="Get Started" href="/docs/quickstart" variant="primary" />
<HeroAction label="GitHub" href="https://github.com/org/repo" variant="secondary" />

A short tagline describing your project.
</Hero>

HeroAction

Buttons inside a Hero.

PropTypeDescription
labelStringButton text
hrefStringLink URL
variantString"primary" (filled) or "secondary" (outlined)

Section

A full-width content section with optional background.

PropTypeDescription
bgStringBackground style: "muted" for subtle contrast, omit for default
<Section bg="muted">
Content goes here.
</Section>

FeatureGrid

A responsive grid of feature cards. Wrap Feature components inside it.

<FeatureGrid>
<Feature icon="⚡" title="Fast">
Description of feature.
</Feature>
<Feature icon="🔍" title="Searchable">
Another feature.
</Feature>
</FeatureGrid>

Feature

A single feature card inside a FeatureGrid.

PropTypeDescription
iconStringEmoji or icon
titleStringFeature title
classStringOptional CSS class for animations

CTA

Call-to-action section. Use HeroAction children for buttons.

PropTypeDescription
titleStringCTA heading
descriptionStringSupporting text
<CTA title="Ready to start?" description="Get up and running in minutes.">
<HeroAction label="Install" href="/docs/installation" variant="primary" />
</CTA>

TestimonialGrid

A grid of testimonial cards.

<TestimonialGrid>
<Testimonial name="Jane Doe" role="Developer" avatar="/assets/jane.jpg">
This tool is amazing.
</Testimonial>
<Testimonial name="John Smith" role="CTO">
Saved us hours of work.
</Testimonial>
</TestimonialGrid>

Testimonial

A single testimonial card.

PropTypeDescription
nameStringPerson's name
roleStringTitle or role
avatarStringAvatar image URL

Full Example

home.rdxmarkdown
---
title: My Project
layout: landing
---

<Hero title="My Project">
<HeroAction label="Get Started" href="/docs/quickstart" variant="primary" />
<HeroAction label="GitHub" href="https://github.com/org/repo" variant="secondary" />

Build something great with zero configuration.
</Hero>

<Section bg="muted">
<FeatureGrid>
<Feature icon="⚡" title="Fast">Lightning-fast builds.</Feature>
<Feature icon="🔍" title="Search">Built-in full-text search.</Feature>
<Feature icon="📦" title="Simple">Zero config to get started.</Feature>
</FeatureGrid>
</Section>

<Section>
<CTA title="Ready?" description="Get started in under a minute.">
<HeroAction label="Install" href="/docs/installation" variant="primary" />
</CTA>
</Section>
View page sourceLast updated on Mar 17, 2026 by Farhan Syah