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

Options:

  • bg (string, required)
  • pill (boolean, optional)

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

<x-bs::badge bg="success">Success</x-bs::badge>

You can create pill badges using the pill option:

<x-bs::badge bg="success" pill>Success</x-bs::badge>

Clone this wiki locally