@ltht-react/banner
v2.0.103
Published
ltht-react Banner Component.
Downloads
2,697
Maintainers
Keywords
Readme
Banner
Import
import Banner from '@ltht-react/banner'
Usage
<Banner type="info">
This is an info alert with{' '}
<a href="#" class="alert-link">
an example link
</a>
.
</Banner>
Properties
| Prop | Required | Default | Type | Description |
| :--------- | :------- | :------ | :----------------------------- | :---------------------------------------------------- |
| type
| No | 'info' | 'info', 'danger', 'warning' | Type of styling for the banner |
| icon
| No | None | ReactNode | Custom to render |
| children
| No | None | Element | Child elements to render within the banner |
| ...rest
| No | None | HTMLAttributes | Any additional props supported by an HTML Div Element |