chore(components): add @IconifyIcon tag on icon properties (#3445)

This commit is contained in:
Romain Hamel
2025-03-04 10:40:13 +01:00
committed by GitHub
parent ccbd89c908
commit fb4e05c65f
24 changed files with 106 additions and 6 deletions

View File

@@ -26,11 +26,18 @@ export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | '
/**
* The icon when the `loading` prop is `true`.
* @defaultValue appConfig.ui.icons.loading
* @IconifyIcon
*/
loadingIcon?: string
/** Display an icon when the switch is checked. */
/**
* Display an icon when the switch is checked.
* @IconifyIcon
*/
checkedIcon?: string
/** Display an icon when the switch is unchecked. */
/**
* Display an icon when the switch is unchecked.
* @IconifyIcon
*/
uncheckedIcon?: string
label?: string
description?: string