Components
Banner
Banners communicate prominent messages, such as system status, errors, or important information.
Stable
GitHubAnatomy
Anatomy
import {Banner} from '@staffbase/design';
<Banner>
<Banner.Close />
</Banner>Examples
Variants
Sizes
Layouts
API reference
Banner
| Name | Type | Description |
|---|---|---|
children | ReactNode | The content of the Banner. |
variant | infosuccesswarningcritical | Defines the semantics / use case of Banner. Default: info |
size | smmd | Changes the size of the Banner. Default: sm |
layout | standalonebleed | Changes the style of the banner. Default: standalone |
Close
| Name | Type | Description |
|---|---|---|
aria-label | string | Accessible label describing the close action for screen readers. |