chore(components): improve tsdoc

This commit is contained in:
Benjamin Canac
2025-03-04 11:58:31 +01:00
parent 629c54261a
commit 25e503bc83
38 changed files with 274 additions and 1 deletions

View File

@@ -16,6 +16,9 @@ const inputMenu = tv({ extend: tv(theme), ...(appConfigInputMenu.ui?.inputMenu |
export interface InputMenuItem {
label?: string
/**
* @IconifyIcon
*/
icon?: string
avatar?: AvatarProps
chip?: ChipProps
@@ -40,8 +43,17 @@ export interface InputMenuProps<T extends MaybeArrayOfArrayItem<I>, I extends Ma
type?: InputHTMLAttributes['type']
/** The placeholder text when the input is empty. */
placeholder?: string
/**
* @defaultValue 'primary'
*/
color?: InputMenuVariants['color']
/**
* @defaultValue 'outline'
*/
variant?: InputMenuVariants['variant']
/**
* @defaultValue 'md'
*/
size?: InputMenuVariants['size']
required?: boolean
autofocus?: boolean