Компонент Icon используется для вывода иконок.
use MoonShine\Support\Enums\Color;
make(
string $icon,
int $size = 5,
Color|string $color = '',
?string $path = null,
)
namespaces
use MoonShine\Support\Enums\Color;
make(
string $icon,
int $size = 5,
Color|string $color = '',
?string $path = null,
)
use MoonShine\Support\Enums\Color;
make(
string $icon,
int $size = 5,
Color|string $color = '',
?string $path = null,
)
namespaces
use MoonShine\Support\Enums\Color;
make(
string $icon,
int $size = 5,
Color|string $color = '',
?string $path = null,
)
use MoonShine\Support\Enums\Color;
make(
string $icon,
int $size = 5,
Color|string $color = '',
?string $path = null,
)
$icon - название иконки или html (если используется кастомный режим),
$size - размер,
$color - цвет,
$path - путь до директории где лежат blade шаблоны иконок.
use MoonShine\UI\Components\Icon;
Icon::make('users')
namespaces
use MoonShine\UI\Components\Icon;
Icon::make('users')
use MoonShine\UI\Components\Icon;Icon::make('users')
namespaces
use MoonShine\UI\Components\Icon;
Icon::make('users')
use MoonShine\UI\Components\Icon;Icon::make('users')
<x-moonshine::icon icon="users" />
<x-moonshine::icon icon="users" />
<x-moonshine::icon icon="users" />
<x-moonshine::icon icon="users" />
<x-moonshine::icon icon="users" />
Пример с передачей HTML иконки:
Icon::make(
svg('path-to-icon-pack')->toHtml()
)->custom()
Icon::make(
svg('path-to-icon-pack')->toHtml()
)->custom()
Icon::make(
svg('path-to-icon-pack')->toHtml()
)->custom()
Icon::make(
svg('path-to-icon-pack')->toHtml()
)->custom()
Icon::make(
svg('path-to-icon-pack')->toHtml()
)->custom()