chore(Alert/CommandPalette): improve close tsdoc

This commit is contained in:
Benjamin Canac
2024-12-11 16:22:32 +01:00
parent f179f8588a
commit 3445078cab
2 changed files with 2 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ export interface AlertProps {
/**
* Display a close button to dismiss the alert.
* `{ size: 'md', color: 'neutral', variant: 'link' }`{lang="ts-type"}
* @emits `close`
* @emits 'update:open'
* @defaultValue false
*/
close?: ButtonProps | boolean

View File

@@ -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).
* `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
* @emits 'update:open'
* @defaultValue false
*/
close?: ButtonProps | boolean