Banner
A banner displays a prominent message at the top of the screen.Installation
| Install | yarn add @atlaskit/banner |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/banner, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | Visual style to be used for the banner |
|---|---|
| Type | "warning" | "error" | "announcement" |
| Description | Content to be shown next to the icon. Typically text content but can contain links. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Icon to be shown left of the main content. Typically an Atlaskit @atlaskit/icon |
|---|---|
| Type | ReactElement<any, string | JSXElementConstructor<any>> |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<HTMLDivElement> |
| Description | A |
|---|---|
| Type | string |