Hero

Hero is a flexible section component for creating prominent page banners and headers. It supports overlays and content positioning using the HeroContent and HeroOverlay subcomponents.

Basic Usage

Hello There!

Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi.
Code Example
Basic.vue

A simple Hero section with centered content and a call to action.

Components

The Hero components include the following:

  • Hero - The main wrapper for hero sections. Its props control the element and appearance.
  • HeroContent - Positions and styles the content inside a hero section.
  • HeroOverlay - An overlay layer for background effects in hero sections.

Hero

The Hero component serves as the main wrapper for hero sections. Its is prop controls the rendered element (default: div).

Hero Props Type Description
is
string

Sets the HTML element to render. Default is div.

Hero Slots Description
default

The default slot. Place HeroContent, HeroOverlay, or any other elements as children.

HeroContent

The HeroContent component positions and styles the content inside a hero section. Its is prop controls the rendered element (default: div).

HeroContent Props Type Description
is
string

Sets the HTML element to render. Default is div.

HeroContent Slots Description
default

The content to display inside the hero section.

HeroOverlay

The HeroOverlay component provides an overlay layer for background effects in hero sections. Place it as a child of Hero.

HeroOverlay Slots Description
default

Content to display inside the overlay (optional; typically left empty for visual effects only).

Examples

With Image

A Hero section with an image and content side-by-side.

Box Office News!

Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi.

Code Example
WithImage.vue

With Form

A Hero section with a login form and descriptive content.

Login now!

Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi.

Code Example
WithForm.vue

With Background Overlay

A Hero section with a background image and overlay for visual effect.

Hello there

Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi.

Code Example
WithBackgroundOverlay.vue