@leafygreen-ui/banner
v10.2.5
Published
leafyGreen UI Kit Banner
Keywords
Readme
Banner
View on MongoDB.design
Installation
PNPM
pnpm add @leafygreen-ui/bannerYarn
yarn add @leafygreen-ui/bannerNPM
npm install @leafygreen-ui/bannerExample
<Banner>This is the banner content</Banner>Properties
| Prop | Type | Description | Default |
| -------------- | ---------------------------------------------- | --------------------------------------------------------------------- | ---------- |
| variant | 'info', 'warning', 'danger', 'success' | Sets the variant for the Banner | 'info' |
| dismissible | boolean | Determines whether or not the Banner is dismissible | false |
| onClose | React.MouseEventHandler | Callback fired when dismiss button is clicked | () => {} |
| image | React.ReactElement | Illustration that will replace default Icon when the prop is supplied | |
| baseFontSize | 13, 16 | Determines font-size for body copy in Callout component | 13 |
| darkMode | boolean | Determines if the component renders in dark theme | false |
| ... | native div attributes | Any other props will be spread on the root div element | |
