Skip to main content Skip to navigation

Components: HasColor

How to use

Components that use this trait allow you to change their color.

Available methods

color(string $color): static

Set the color to use.

Accepted values:

  • Any hex string
  • Any RGB(a) string
Component::make()
    ->color('#7959EF')