1. First
  2. Second
  3. Third

Concepts - Variants

Virtually all components have a variant option, which by default can be one of nine options:

Examples

This is the default variant.
This is the dark variant.
This is the light variant.
This is the brand variant.
This is the primary variant.
This is the secondary variant.
This is the success variant.
This is the warning variant.
This is the danger variant.

Customising Variants

Variants can be customised in the configuration file, which you can publish with:

php artisan vendor:publish --tag=view-components-config

This will put the file "./config/view-components.php" into your app.

From there, variants can be added (including custom variants) or added as per your use cases.