mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 23:11:43 +01:00
chore(components): add @IconifyIcon tag on icon properties (#3445)
This commit is contained in:
@@ -3,23 +3,33 @@ import { useAppConfig } from '#imports'
|
||||
import type { AvatarProps } from '../types'
|
||||
|
||||
export interface UseComponentIconsProps {
|
||||
/** Display an icon based on the `leading` and `trailing` props. */
|
||||
/**
|
||||
* Display an icon based on the `leading` and `trailing` props.
|
||||
* @IconifyIcon
|
||||
*/
|
||||
icon?: string
|
||||
/** Display an avatar on the left side. */
|
||||
avatar?: AvatarProps
|
||||
/** When `true`, the icon will be displayed on the left side. */
|
||||
leading?: boolean
|
||||
/** Display an icon on the left side. */
|
||||
/**
|
||||
* Display an icon on the left side.
|
||||
* @IconifyIcon
|
||||
*/
|
||||
leadingIcon?: string
|
||||
/** When `true`, the icon will be displayed on the right side. */
|
||||
trailing?: boolean
|
||||
/** Display an icon on the right side. */
|
||||
/**
|
||||
* Display an icon on the right side.
|
||||
* @IconifyIcon
|
||||
*/
|
||||
trailingIcon?: string
|
||||
/** When `true`, the loading icon will be displayed. */
|
||||
loading?: boolean
|
||||
/**
|
||||
* The icon when the `loading` prop is `true`.
|
||||
* @defaultValue appConfig.ui.icons.loading
|
||||
* @IconifyIcon
|
||||
*/
|
||||
loadingIcon?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user