mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 20:57:57 +01:00
chore(Alert/CommandPalette): improve close tsdoc
This commit is contained in:
@@ -34,7 +34,7 @@ export interface AlertProps {
|
|||||||
/**
|
/**
|
||||||
* Display a close button to dismiss the alert.
|
* Display a close button to dismiss the alert.
|
||||||
* `{ size: 'md', color: 'neutral', variant: 'link' }`{lang="ts-type"}
|
* `{ size: 'md', color: 'neutral', variant: 'link' }`{lang="ts-type"}
|
||||||
* @emits `close`
|
* @emits 'update:open'
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
close?: ButtonProps | boolean
|
close?: ButtonProps | boolean
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ export interface CommandPaletteProps<G, T> extends Pick<ListboxRootProps, 'multi
|
|||||||
/**
|
/**
|
||||||
* Display a close button in the input (useful when inside a Modal for example).
|
* Display a close button in the input (useful when inside a Modal for example).
|
||||||
* `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
|
* `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
|
||||||
|
* @emits 'update:open'
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
close?: ButtonProps | boolean
|
close?: ButtonProps | boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user