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

@@ -19,7 +19,13 @@ export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | '
* @defaultValue 'div'
*/
as?: any
/**
* @defaultValue 'primary'
*/
color?: SwitchVariants['color']
/**
* @defaultValue 'md'
*/
size?: SwitchVariants['size']
/** When `true`, the loading icon will be displayed. */
loading?: boolean