Hero

React Bootstrap Hero - free examples, templates & tutorial

Responsive React Hero built with Bootstrap 5. Examples include hero image, hero banner, hero slider, hero section & more.

To learn more read Card Docs.


Hero banner

Hero banner is a full width card located at the beginning of a page.

Hello world!

This is a simple hero unit, a simple hero-style component for calling extra attention to featured content or information.


It uses utility classes for typography and spacing to space content out within the larger container.


Hero image

Add a background image to your Hero. Make sure to use a mask ensure contrast between the overlaying text & the image.

You can include many different slides by creating a Hero slider or a Hero slider with thumbnails, if you want use smaller image previews as controls.

Heading

Subheading

Call to action

Hero section with navbar

Since Hero is usually the first element of the page, it may be a good idea to combine your Hero with a navbar.


Background image with navbar

Header with background image might help to outstand your call to action elements by catching the eyes to some beautiful image in the background.

To provide a proper contrast it's highly recommended to use a mask. You can change the color and the opacity of the mask by manipulating RGBA code.

You also must set the height of the background image, otherwise, the component will collapse. In the example below, we set the height to 400px.

We use flexbox utilities to center the content vertically and horizontally.


Fixed navbar

You can stick the navbar to the top of the window by using fixed={true} property. Thanks to this whenever you scroll the page the navbar will be always visible.

Fixed navbars use position: fixed, meaning they’re pulled from the normal flow of the DOM and may require custom CSS (e.g., padding-top on the <body>) to prevent overlap with other elements. In the examples below, we add margin-top: 58px; (height of the navbar) to the Hero and background image for this purpose.

Heading

Subheading

Call to action

Scroll down

Scroll down

Scroll down

Scroll down

Scroll down

Scroll down

Scroll down

Scroll down


Animated navbar

You can achieve a very impressive effect by using our animated navbar, which is transparent on start, and change the color after the scroll.

Click the button below to see the full-screen demo.