Skip to content
CtrlK

ArdoHero

On this page

Hero section component for landing pages.

import { ArdoHero } from "ardo/ui"

<ArdoHero />

Props

NameTypeRequiredDescription
namestringNoLarge title displayed prominently
textstringNoSecondary text below the name
taglinestringNoDescriptive tagline
imageArdoHeroImage | ReactElement | stringNoHero image. A string URL or a light/dark object renders an <img>; a
React element (e.g. an inline SVG mark) is rendered as-is so it can be
tinted with currentColor and scale crisply.
actionsArdoHeroAction[]NoCall-to-action buttons
classNamestringNoAdditional CSS class
versionstringNoVersion string displayed as a pill badge above the name

Props type: ArdoHeroProps

Example

import { ArrowRight, Github } from "ardo/icons"

<ArdoHero
  name="Ardo"
  text="React-first Documentation"
  tagline="Build beautiful documentation sites with React."
  image="/logo.svg"
  actions={[
    { text: "Get Started", link: "/guide/getting-started", theme: "brand", icon: <ArrowRight size={16} /> },
    { text: "GitHub", link: "https://github.com/...", theme: "alt", icon: <Github size={16} /> }
  ]}
/>