• Docs
  • Components
  • Blocks
  • Admin
CtrlK
Get Started
  • Introduction
  • Setup
  • CLI
  • VS Code Extension
  • Figma Code Connect
  • MCP Server
  • llms.txt
  • Changelog
Foundations
  • Design Tokens
  • Theming & Modes
  • Semantic Colors
  • Spacing
  • Typography
Testing
  • Test Guide
  • Performance Tests
  • Visual Regression
Components
  • Accordion
  • Activity Feed
  • Alert
  • Avatar
  • Badge
  • Breadcrumbs
  • Button
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command Palette
  • Context Menu
  • Date Picker
  • Dialog
  • Dropdown Menu
  • File Upload
  • Hover Card
  • Input
  • Kbd
  • Label
  • Menubar
  • Metric Card
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Quick Actions
  • Radio
  • Rating
  • Resizable
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Skeleton
  • Slider
  • Spinner
  • Split Button
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree View
Blocks
  • Activity Feed
  • App Shell
  • Authentication Block
  • Benefits Section
  • Cta Section
  • Data Table
  • Empty State
  • Faq Section
  • Feature Grid Section
  • Footer Section
  • Hero Section
  • Kpi Dashboard
  • Kpi Strip
  • Link Card
  • Metric Card
  • Navigation Header
  • Pagination Footer
  • Pricing Table
  • Quick Actions
  • Settings Screen
Resources
  • API Reference
Footer SectionKpi Dashboard
Footer SectionKpi Dashboard
Footer SectionKpi Dashboard

Hero Section

Top-of-page headline, value prop, and CTA.

Overview

Hero Section is a flexible block component for creating impactful hero sections with title, description, and call-to-action buttons. Supports gradient backgrounds, image backgrounds, and multiple CTA variants.

Welcome to Our Platform

Build amazing experiences with our powerful tools

1
2
3
4
5
6
7
8

Gradient Background

Transform Your Workflow

The all-in-one solution for modern teams

Minimal Hero

Simple Hero

Just the essentials

Code Examples

1
2
3
4
5
6
7
8
9
10
11
12
13

Props

  • title - Hero title (required)
  • description - Hero description (optional)
  • primaryCTA - Primary call-to-action button (optional)
  • secondaryCTA - Secondary call-to-action button (optional)
  • background - Background type: "gradient" | "image" | "solid" (optional, default: "solid")
  • image - Background image object with src and alt (optional)
  • className - Additional CSS classes (optional)

HeroCTA

  • label - Button label (required)
  • href - Link URL (optional)
  • onClick - Click handler (optional)
  • variant - Button variant: "solid" | "outline" | "ghost" (optional)
  • action - Action identifier for analytics (optional)

Install

1

Accessibility

Hero section uses semantic HTML with proper heading hierarchy. CTA buttons are keyboard accessible and follow button/link accessibility patterns. Background images include proper alt text. Compliant with WCAG 2.1.