Components
Hero

Hero

The Hero component provides you with landing page hero sections and banners.

Import

import { Hero } from '@nostromo/ui-marketing'
// or
import { Hero } from '@nostromo/ui-marketing/hero'

Usage

import { Hero } from '@nostromo/ui-marketing'
import { Button } from '@nostromo/ui-core'
 
export default function Example() {
  return (
    <Hero
      title="Welcome to Nostromo UI"
      subtitle="A comprehensive UI library"
      cta={<Button>Get Started</Button>}
    />
  )
}

Live Examples

Live Example
☀️
Copy
Storybook →
View Code
import { Hero } from '@nostromo/ui-marketing' import { Button } from '@nostromo/ui-core' export default function HeroExample() { return ( <Hero title="Welcome to Nostromo UI" subtitle="A comprehensive UI library built with React, TypeScript and Tailwind CSS" cta={ <div className="flex gap-4">...
Live Example
☀️
Copy
Storybook →
View Code
import { Hero } from '@nostromo/ui-marketing' import { Button } from '@nostromo/ui-core' export default function HeroVariants() { return ( <div className="space-y-8"> <Hero title="Default Hero" subtitle="Standard hero section with center alignment" size="md"...

Code Examples

Props

PropTypeDefaultRequiredDescription
titlestring-YesHero title text
subtitlestringundefinedNoHero subtitle text
ctaReact.ReactNodeundefinedNoCall-to-action content (buttons, links, etc.)
size"sm" | "md" | "lg" | "xl""md"NoSize of the hero section
variant"default" | "muted" | "accent""default"NoVisual variant
contentAlign"left" | "center" | "right""center"NoContent alignment
titleSize"sm" | "md" | "lg" | "xl" | "2xl"undefinedNoSize of the title text
subtitleSize"sm" | "md" | "lg"undefinedNoSize of the subtitle text
backgroundImagestringundefinedNoBackground image URL
overlaybooleanfalseNoWhether to add overlay effect over background image
classNamestringundefinedNoAdditional CSS classes