Skip to content

Commit

Permalink
Update color property to accept Closure type
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Jul 9, 2024
1 parent a9526be commit e1b71df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Concerns/HasColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

trait HasColor
{
protected string $color = 'gray';
protected Closure|string $color = 'gray';

public function color(Closure|string $color): static
{
Expand Down

0 comments on commit e1b71df

Please sign in to comment.