Alerts

Examples

<Bs::Alert @color="primary">A simple primary alert—check it out!</Bs::Alert>
<Bs::Alert @color="secondary">A simple secondary alert—check it out!</Bs::Alert>
<Bs::Alert @color="success">A simple success alert—check it out!</Bs::Alert>
<Bs::Alert @color="danger">A simple danger alert—check it out!</Bs::Alert>
<Bs::Alert @color="warning">A simple warning alert—check it out!</Bs::Alert>
<Bs::Alert @color="info">A simple info alert—check it out!</Bs::Alert>
<Bs::Alert @color="light">A simple light alert—check it out!</Bs::Alert>
<Bs::Alert @color="dark">A simple dark alert—check it out!</Bs::Alert>

Link color

<Bs::Alert @color="primary">
  A simple primary alert with
  <LinkTo @route="application" class="alert-link">an example link</LinkTo>.
  Give it a click if you like.
</Bs::Alert>
<Bs::Alert @color="secondary">
  A simple secondary alert with
  <LinkTo @route="application" class="alert-link">an example link</LinkTo>.
  Give it a click if you like.
</Bs::Alert>
<Bs::Alert @color="success">
  A simple success alert with
  <LinkTo @route="application" class="alert-link">an example link</LinkTo>.
  Give it a click if you like.
</Bs::Alert>
<Bs::Alert @color="danger">
  A simple danger alert with
  <LinkTo @route="application" class="alert-link">an example link</LinkTo>.
  Give it a click if you like.
</Bs::Alert>
<Bs::Alert @color="warning">
  A simple warning alert with
  <LinkTo @route="application" class="alert-link">an example link</LinkTo>.
  Give it a click if you like.
</Bs::Alert>
<Bs::Alert @color="info">
  A simple info alert with
  <LinkTo @route="application" class="alert-link">an example link</LinkTo>.
  Give it a click if you like.
</Bs::Alert>
<Bs::Alert @color="light">
  A simple light alert with
  <LinkTo @route="application" class="alert-link">an example link</LinkTo>.
  Give it a click if you like.
</Bs::Alert>
<Bs::Alert @color="dark">
  A simple dark alert with
  <LinkTo @route="application" class="alert-link">an example link</LinkTo>.
  Give it a click if you like.
</Bs::Alert>

Additional content

<Bs::Alert @color="success">
  <h4 class="alert-heading">Well done!</h4>
  <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 with this kind of content.</p>
  <hr />
  <p class="mb-0">Whenever you need to, be sure to use margin utilities to
    keep things nice and tidy.</p>
</Bs::Alert>