Hero#

Hero sections for landing pages and headers with flexible layouts.

Import#

TSX
import { Hero, HeroContent, Text } from '@sigx/daisyui';

Basic Hero#

TSX
Loading preview...

Hero with Image#

Image on Side#

TSX
Loading preview...

Hero with Overlay#

TSX
Loading preview...

Hero with Form#

TSX
Loading preview...

Hero with Stats#

TSX
Loading preview...

Hero with Features#

TSX
Loading preview...

Notes on current API constraints#

This page now favors component composition, but a few styling classes remain intentional due to current component API limitations:

  • HeroContent always applies an internal max-w-md wrapper, which can constrain wide layouts.
  • Stats.Item currently has no props for title/value-specific styling.
  • Some responsive behaviors (like md:stats-horizontal) still require class utilities.

These are tracked as migration gap candidates for Milestone 5.

Props#

Hero Props#

PropTypeDefaultDescription
overlaybooleanfalseShow hero overlay
bgImagestring-Background image URL
minHeightstring-Minimum height (e.g., '400px')
classstring-Additional CSS classes

Hero Slots#

SlotDescription
defaultHero content (overlay + HeroContent)
overlayContent for the overlay layer

HeroContent Props#

PropTypeDefaultDescription
classstring-Additional CSS classes for layout

HeroContent Slots#

SlotDescription
defaultContent elements