Skip to main content

Hero

A prominent hero section component with background image support and flexible text positioning.

Component Preview

Props

PropTypeDescription
titlestringMain headline text.
subtitlestringOptional subtitle text.
imageSrcstringBackground image URL.
actionLabelstringLabel for the primary call-to-action button.
hrefstringURL for the call-to-action button.
textAlignment'left' | 'center' | 'right' | 'justify'Alignment of the text content. Default: 'left'.
padding'none' | 'small' | 'medium' | 'large'Padding size. Default: 'none'.
focalPoint'top' | 'left' | 'right' | 'bottom' | 'center'Focal point for background image positioning. Default: 'center'.
classNamestringOptional CSS class name for the wrapper.
invertedbooleanWhether to use inverted theme colors. Default: false.

JSON Data Example

{
"type": "Hero",
"data": {
"title": "Give Your Business the Attention that it Deserves",
"subtitle": "Unlock Your Potential: Let Us Handle IT Solutions While You Excel",
"actionLabel": "Schedule Call",
"href": "#",
"imageSrc": "https://picsum.photos/800/400",
"textPosition": "left",
"textAlignment": "left",
"padding": "none",
"className": "min-h-[50vh] md:min-h-[70vh] bg-primary text-primary-950",
"focalPoint": "center"
}
}