trait HasColor (View source)

Properties

protected string $color

Methods

color(string|array|bool|Closure|null $color)

No description

colors(array|Closure $colors)

No description

string|array|null
getColor(mixed $state)

No description

Details

HasColor color(string|array|bool|Closure|null $color)

No description

Parameters

string|array|bool|Closure|null $color

Return Value

HasColor

HasColor colors(array|Closure $colors)

No description

Parameters

array|Closure $colors

Return Value

HasColor

string|array|null getColor(mixed $state)

No description

Parameters

mixed $state

Return Value

string|array|null

| array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | null