chore(components): add lang ts-type on close buttons jsdoc

This commit is contained in:
Benjamin Canac
2024-07-17 15:25:28 +02:00
parent a155e7c1a7
commit 11b4dfefa7
5 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ export interface AlertProps {
actions?: ButtonProps[]
/**
* Display a close button to dismiss the alert.
* `{ size: 'md', color: 'gray', variant: 'link' }`
* `{ size: 'md', color: 'gray', variant: 'link' }`{lang="ts-type"}
* @emits `close`
* @defaultValue false
*/

View File

@@ -59,7 +59,7 @@ export interface CommandPaletteProps<G, T> extends Pick<ComboboxRootProps, 'mult
placeholder?: InputProps['placeholder']
/**
* Display a close button in the input (useful when inside a `UModal`).
* `{ size: 'md', color: 'gray', variant: 'ghost' }`
* `{ size: 'md', color: 'gray', variant: 'ghost' }`{lang="ts-type"}
* @defaultValue false
*/
close?: ButtonProps | boolean

View File

@@ -25,7 +25,7 @@ export interface ModalProps extends DialogRootProps {
portal?: boolean
/**
* Display a close button to dismiss the modal.
* `{ size: 'md', color: 'gray', variant: 'ghost' }`
* `{ size: 'md', color: 'gray', variant: 'ghost' }`{lang="ts-type"}
* @defaultValue true
*/
close?: ButtonProps | boolean

View File

@@ -35,7 +35,7 @@ export interface SlideoverProps extends DialogRootProps {
portal?: boolean
/**
* Display a close button to dismiss the slideover.
* `{ size: 'md', color: 'gray', variant: 'ghost' }`
* `{ size: 'md', color: 'gray', variant: 'ghost' }`{lang="ts-type"}
* @defaultValue true
*/
close?: ButtonProps | boolean

View File

@@ -31,7 +31,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
actions?: ButtonProps[]
/**
* Display a close button to dismiss the toast.
* `{ size: 'md', color: 'gray', variant: 'link' }`
* `{ size: 'md', color: 'gray', variant: 'link' }`{lang="ts-type"}
* @defaultValue true
*/
close?: ButtonProps | boolean