mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(Switch): improve props JSDoc
This commit is contained in:
@@ -14,9 +14,16 @@ type SwitchVariants = VariantProps<typeof switchTv>
|
||||
export interface SwitchProps extends Omit<SwitchRootProps, 'asChild' | 'checked' | 'defaultChecked'> {
|
||||
color?: SwitchVariants['color']
|
||||
size?: SwitchVariants['size']
|
||||
/** When `true`, the loading icon will be displayed. */
|
||||
loading?: boolean
|
||||
/**
|
||||
* The icon when the `loading` prop is `true`.
|
||||
* @defaultValue `appConfig.ui.icons.loading`
|
||||
*/
|
||||
loadingIcon?: string
|
||||
/** Display an icon when the switch is checked. */
|
||||
checkedIcon?: string
|
||||
/** Display an icon when the switch is unchecked. */
|
||||
uncheckedIcon?: string
|
||||
label?: string
|
||||
description?: string
|
||||
|
||||
Reference in New Issue
Block a user