Skip to content

HeroSection

<bh-hero-section> | BharatHeroSection

The bh-hero-section component provides a customizable hero section with various layouts, backgrounds, and styling options that match the Bharat UI design system. Perfect for creating impactful landing pages and introductory sections.

Open in flex-shrink: 0; flex-shrink: 0;

New

Introducing BharatUI for developers →

Transform Your Designs with BharatUI

BharatUI brings components, not complexity.

Follow us on Youtube

Follow us on twitter

Basic Usage

Open in flex-shrink: 0; flex-shrink: 0;

New

Introducing BharatUI for developers →

Transform Your Designs with BharatUI

BharatUI brings components, not complexity.

Follow us on Youtube

Follow us on twitter

Properties

PropertyTypeDescription
bg-colorstringBackground color of the hero section. Can be overridden by a background image.
header-colorstringText color for the main header slot content.
text-colorstringText color for the paragraph/description content.
image-urlstringURL of the background image to be used in the hero section. Overrides bg-color.

Named Slots

Slot NameDescription
announcementOptional. Displays a banner-style notice or CTA above the header.
headerThe main headline text of the hero section.
paragraphSupporting text below the header.
buttonsSlot for one or more call-to-action buttons.
logotitleSmall label shown before the logo grid (e.g., “As featured on”).
logosLogo grid display (e.g., brand icons or partner badges).