SaaS Banner

Dismissible banner notification

SaaSFeedback

Overview

Banner displays prominent full-width messages at the top or bottom of the page. It supports five semantic variants, optional dismiss and action buttons, and sticky positioning for persistent messages.

Usage

import { Banner } from "@leanicon/web-builder-library/saas";

<Banner
  title="New version available"
  description="Refresh the page to get the latest updates."
  variant="info"
  isDismissible
  onDismiss={() => {}}
/>;

Variants

Default

Dark

Info

Success

Warning

Destructive

With Action

Sticky

Props

NameTypeDefaultRequiredDescription
idstring—NoUnique identifier
positionenumtopNoPosition of the banner
isStickybooleanfalseNoWhether banner stays visible on scroll
iconReactNode—NoCustom icon (overrides default variant icon)
onDismiss(() => void)—NoCallback when banner is dismissed
classNamestring—NoAdditional CSS class names
titlestring—Yes
variantenumdefaultNo
descriptionstring—No
actionBannerAction—No
isDismissiblebooleantrueNo