Icons API
This page provides an overview of the Icons component API, detailing its props, emits, slots, and exposed methods/states.
Props
The Icons component accepts the following props:
| Prop | Default | Type | Description |
|---|---|---|---|
type | Required | string | The type of the icon to render. |
class | "h-5 w-5 text-gray-400 dark:text-gray-600" | "h-5 w-5 text-gray-400 dark:text-gray-600" or StyleClass or undefined | Custom CSS class for the icon. |
style | undefined | CSSProperties or undefined | Custom inline styles for the icon. |
Emits
The Icons component does not emit any events.
Slots
The Icons component does not provide any slots.
Expose
The Icons component exposes the following methods and states via ref:
| Expose | Value | Description |
|---|---|---|
type | IconsProps["type"] | The current type of the icon. |
classIcon | IconsProps["class"] | The current CSS class applied to the icon. |
style | IconsProps["style"] | The current inline styles applied to the icon. |