From 0f2da5bb1599ca45112c6c8683a85dd66d8ce0c6 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 10 Jun 2024 11:17:42 +0200 Subject: [PATCH] chore(Switch): improve props JSDoc --- src/runtime/components/Switch.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/runtime/components/Switch.vue b/src/runtime/components/Switch.vue index 29356629..2ca49834 100644 --- a/src/runtime/components/Switch.vue +++ b/src/runtime/components/Switch.vue @@ -14,9 +14,16 @@ type SwitchVariants = VariantProps export interface SwitchProps extends Omit { 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