Banner

A banner displays a prominent message.

Usage

A banner displays a prominent message.

Size

A small size banner.
A medium size banner.
A large size banner.

Type

Title of the banner
Description of the banner goes here and can include links or some code snippet @liveblocks/client which can also be a link toImmutable.
Title of the banner
Description of the banner goes here and can include links or some code snippet @liveblocks/client which can also be a link toImmutable.
Title of the banner
Description of the banner goes here and can include links or some code snippet @liveblocks/client which can also be a link toImmutable.
Title of the banner
Description of the banner goes here and can include links or some code snippet @liveblocks/client which can also be a link toImmutable.

With close button

Banners can be dismissible with an onClose callback.

Update Available
A new version is ready to install.

Props

PropTypeDefaultDescription
type'info' | 'success' | 'error' | 'warning''info'Visual style indicating the message type
size'sm' | 'md' | 'lg''md'Size of the banner
titlestring-Optional heading for the banner
descriptionReactNode | string-Main message content
detailsReactNode-Additional expandable content shown below the main message
onClose() => void-Callback when the close button is clicked. Shows close button when provided.
classNamestring-Additional CSS classes