mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 00:40:34 +01:00
chore(components): add @IconifyIcon tag on icon properties (#3445)
This commit is contained in:
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user