Skip to content
Martin Bean edited this page Nov 1, 2021 · 1 revision

Options:

  • dismissible (boolean, optional)
  • show (boolean, optional)
  • variant (string, required)

The variant option should corresponding to a Bootstrap theme color, i.e primary, secondary, danger, etc.

<x-bs::alert variant="danger">This is a danger-style alert.</x-bs::alert>

You can make an alert dismissible by adding the dismissible option. This will automatically add a close button:

<x-bs::alert dismissible variant="success">That action was successful.</x-bs::alert>

Clone this wiki locally