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

@@ -14,8 +14,14 @@ const tree = tv({ extend: tv(theme), ...(appConfig.ui?.tree || {}) })
type TreeVariants = VariantProps<typeof tree>
export type TreeItem = {
/**
* @IconifyIcon
*/
icon?: string
label?: string
/**
* @IconifyIcon
*/
trailingIcon?: string
defaultExpanded?: boolean
disabled?: boolean
@@ -47,16 +53,19 @@ export interface TreeProps<T extends TreeItem, M extends boolean = false, K exte
/**
* The icon displayed on the right side of a parent node.
* @defaultValue appConfig.ui.icons.chevronDown
* @IconifyIcon
*/
trailingIcon?: string
/**
* The icon displayed when a parent node is expanded.
* @defaultValue appConfig.ui.icons.folderOpen
* @IconifyIcon
*/
expandedIcon?: string
/**
* The icon displayed when a parent node is collapsed.
* @defaultValue appConfig.ui.icons.folder
* @IconifyIcon
*/
collapsedIcon?: string
items?: T[]