Badge Component

# Make

The Badge component allows you to create badges.

You can create a Badge using the static method make() class Badge.

make(string $value = '', string $color = 'purple')
  • $value - icon text
  • $color - icon color.
use MoonShine\Components\Badge;
 
//...
 
public function components(): array
{
return [
Badge::make(
'new',
'green'
)
];
}
 
//...

# Colors

Available colors:

primary secondary success warning error info

purple pink blue green yellow red gray