Style Guide

DraftPen design system

Announcement Banners

Customizable announcement banners for displaying important messages to users

Current Live Banner

The banner currently displayed across the application

Component API

The AnnouncementBanner component accepts the following props:

PropTypeDefaultDescription
messagestringRequiredThe announcement message to display
linkTextstringOptionalText for the call-to-action link
linkUrlstringOptionalURL for the call-to-action link
backgroundColorstringbg-blue-600Tailwind background color class
textColorstringtext-whiteTailwind text color class
iconReactNodeOptionalIcon to display next to the message
dismissiblebooleanfalseWhether the banner can be dismissed
storageKeystringannouncement-dismissedlocalStorage key for dismissal state

Examples

Various examples of announcement banners for different use cases

Feature Announcement
Announcing a new feature or tool
Promotional Banner
Special offers and promotions
Alert Banner
Important alerts and notifications
Dismissible Banner
Banner that can be dismissed by the user