mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +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[]
|
actions?: ButtonProps[]
|
||||||
/**
|
/**
|
||||||
* Display a close button to dismiss the alert.
|
* 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`
|
* @emits `close`
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export interface CommandPaletteProps<G, T> extends Pick<ComboboxRootProps, 'mult
|
|||||||
placeholder?: InputProps['placeholder']
|
placeholder?: InputProps['placeholder']
|
||||||
/**
|
/**
|
||||||
* Display a close button in the input (useful when inside a `UModal`).
|
* 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
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
close?: ButtonProps | boolean
|
close?: ButtonProps | boolean
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export interface ModalProps extends DialogRootProps {
|
|||||||
portal?: boolean
|
portal?: boolean
|
||||||
/**
|
/**
|
||||||
* Display a close button to dismiss the modal.
|
* 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
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
close?: ButtonProps | boolean
|
close?: ButtonProps | boolean
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export interface SlideoverProps extends DialogRootProps {
|
|||||||
portal?: boolean
|
portal?: boolean
|
||||||
/**
|
/**
|
||||||
* Display a close button to dismiss the slideover.
|
* 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
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
close?: ButtonProps | boolean
|
close?: ButtonProps | boolean
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|||||||
actions?: ButtonProps[]
|
actions?: ButtonProps[]
|
||||||
/**
|
/**
|
||||||
* Display a close button to dismiss the toast.
|
* 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
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
close?: ButtonProps | boolean
|
close?: ButtonProps | boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user