Components
Banner

Banner

Banners act as prominent alerts, delivering essential messages or guidance across digital platforms. These eye-catching strips are designed to grab attention, whether announcing updates, warning users, or promoting special offers.

Examples

Default

Default Banner.

Account Limit Reached

Detailed Banner

Add a description by passing the description prop to the component.

Account Limit Reached
Please upgrade your account to generate more images

Icon Banner

Add an icon by passing the icon prop to the component.

Account Limit Reached

Variant

Change the variant by passing the variant prop to the component.

Default Banner
Soft Banner

Actionable Banner

Add a button by passing the action prop to the component

Account Limit Reached
Please upgrade your account to generate more images

Closable Banner

Make the banner closable by passing the onClose prop to the component

Account Limit Reached
Please upgrade your account to generate more images

Color

Change the color by passing the color prop to the component

Account Limit Reached
Please upgrade your account to generate more images
Account Limit Reached
Please upgrade your account to generate more images
Account Limit Reached
Please upgrade your account to generate more images
Account Limit Reached
Please upgrade your account to generate more images
Account Limit Reached
Please upgrade your account to generate more images
Account Limit Reached
Please upgrade your account to generate more images

Installation

Properties

title
string
* required

Title of the Banner.

description
string

Description of the Banner.

variant
"default"
"soft"
default: "primary"

Type of the Banner, soft has a softer background.

color
"primary"
"success"
"warning"
"danger"
default: "primary"

Color of the Banner.

icon
React.ReactNode

Icon shown to the left of the text in the Banner.

onClose
function

Function called when the close (X) button is clicked.

action
React.ReactNode

React node shown at the bottom of the Banner, usually in the form of a button.

className
string

Classname to style the Banner.