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
| Prop | Type | Default | Description |
|---|---|---|---|
type | 'info' | 'success' | 'error' | 'warning' | 'info' | Visual style indicating the message type |
size | 'sm' | 'md' | 'lg' | 'md' | Size of the banner |
title | string | - | Optional heading for the banner |
description | ReactNode | string | - | Main message content |
details | ReactNode | - | Additional expandable content shown below the main message |
onClose | () => void | - | Callback when the close button is clicked. Shows close button when provided. |
className | string | - | Additional CSS classes |