mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore(components): add lang ts-type on close buttons jsdoc
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user