Unicon home page
Search...
⌘K
unicon-rocks/unicon-laravel
unicon-rocks/unicon-laravel
Search...
Navigation
Blade Component
Documentation
GitHub
Overview
Introduction
Changelog
Getting Started
Installation
Recommended setup
Components
Blade component
Helper function
Commands
Preload
Reference
Configuration
Credits
On this page
Usage
Component API
Blade Component
A component for rendering icons
Usage
Copy
<
x-icon
name
=
"heroicons:clock"
/>
Component API
name
string
required
The name of the icon to render.
The name is the combination of the prefix and the icon name, separated by a colon (e.g.
heroicons:clock
).
class
string
default:
""
The class attribute to apply to the rendered icon.
Class names will be merged with the default class names declared in the configuration (if any).
mode
string
default:
"css"
The rendering mode of the icon.
Icons can either be rendered as
css
background images or as inline
svg
elements.
Assistant
Responses are generated using AI and may contain mistakes.