Skip to main content

Banner

Banners are used for advertising brands, products, and/or collections. They comprise an image, some text content, and a call-to-action button. The final Banner component is a compound of the following:

  • BannerImage: the component that wraps the image displayed in the component.
  • BannerContent: the content of the banner, including a title, description, and BannerLink.
  • BannerLink: the banner's call-to-action link.

Import​

import { Banner, BannerImage, BannerContent, BannerLink } from '@faststore/ui'

Usage​

A person with hands on the pocket, carrying a round straw bag

Get to know our new release

Your one-stop shop for making this summer season the best of all.

Variants​

Horizontal​

A person with hands on the pocket, carrying a round straw bag

Get to know our new release

Your one-stop shop for making this summer season the best of all.

Props​

All banner-related components support all attributes also supported by the <div> tag.

Besides those attributes, the following props are also supported:

BannerImage​

BannerContent​

Customization​

data-fs-banner

data-fs-banner=('vertical'|'horizontal')

data-banner-image

data-banner-content

data-banner-link

Didn't find your answers? Ask the Community. For documentation suggestions, submit your feedback.

JOIN THE COMMUNITY