Hero
Hero sections for landing pages and headers with flexible layouts.
Import
import { Hero, HeroContent, Text } from '@sigx/daisyui';
Basic Hero
Loading preview...
Hero with Image
Image on Side
Loading preview...
Hero with Overlay
Loading preview...
Hero with Form
Loading preview...
Hero with Stats
Loading preview...
Hero with Features
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:
HeroContentalways applies an internalmax-w-mdwrapper, which can constrain wide layouts.Stats.Itemcurrently 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
| Prop | Type | Default | Description |
|---|---|---|---|
overlay | boolean | false | Show hero overlay |
bgImage | string | - | Background image URL |
minHeight | string | - | Minimum height (e.g., '400px') |
class | string | - | Additional CSS classes |
Hero Slots
| Slot | Description |
|---|---|
default | Hero content (overlay + HeroContent) |
overlay | Content for the overlay layer |
HeroContent Props
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS classes for layout |
HeroContent Slots
| Slot | Description |
|---|---|
default | Content elements |