Alerts can content whatever content you like. Headers, paragraphs, dividers, go crazy.
Hey, nice to see you
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Whenever you need to, be sure to use margin utilities to keep things nice and tidy.
<Alertvariant="success">
<Alert.Heading>Hey, nice to see you</Alert.Heading>
<p>
Aww yeah, you successfully read this important alert message. This example
text is going to run a bit longer so that you can see how spacing within an
alert works withthis kind of content.
</p>
<hr/>
<pclassName="mb-0">
Whenever you need to, be sure to use margin utilities to keep things nice
Add the dismissible prop to add a functioning dismiss
button to the Alert.
Oh snap! You got an error!
Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
You can use a custom element type for this component.
bsPrefix required
string
'alert-heading'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
You can use a custom element type for this component.
bsPrefix required
string
'alert-link'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.