mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 03:38:54 +01:00
chore(components): improve props
This commit is contained in:
@@ -39,33 +39,33 @@ export interface CommandPaletteGroup<T> {
|
||||
export interface CommandPaletteProps<G, T> extends Pick<ComboboxRootProps, 'as' | 'multiple' | 'disabled' | 'modelValue' | 'defaultValue'>, Pick<UseComponentIconsProps, 'loading' | 'loadingIcon'> {
|
||||
/**
|
||||
* The icon displayed in the input.
|
||||
* @defaultValue `appConfig.ui.icons.search`
|
||||
* @defaultValue appConfig.ui.icons.search
|
||||
*/
|
||||
icon?: string
|
||||
/**
|
||||
* The icon displayed when an item is selected.
|
||||
* @defaultValue `appConfig.ui.icons.check`
|
||||
* @defaultValue appConfig.ui.icons.check
|
||||
*/
|
||||
selectedIcon?: string
|
||||
/**
|
||||
* The placeholder text for the input.
|
||||
* @defaultValue `'Type a command or search...'`
|
||||
* @defaultValue 'Type a command or search...'
|
||||
*/
|
||||
placeholder?: InputProps['placeholder']
|
||||
/**
|
||||
* Display a close button in the input (useful when inside a `UModal`).
|
||||
* @defaultValue `false` (`{ size: 'md', color: 'gray', variant: 'ghost' }`)
|
||||
* @defaultValue false ({ size: 'md', color: 'gray', variant: 'ghost' })
|
||||
*/
|
||||
close?: ButtonProps | boolean
|
||||
/**
|
||||
* The icon displayed in the close button.
|
||||
* @defaultValue `appConfig.ui.icons.close`
|
||||
* @defaultValue appConfig.ui.icons.close
|
||||
*/
|
||||
closeIcon?: string
|
||||
groups?: G[]
|
||||
/**
|
||||
* Options for [useFuse](https://vueuse.org/integrations/useFuse).
|
||||
* @defaultValue `{ ignoreLocation: true, threshold: 0.1, keys: ['label', 'suffix'], resultLimit: 12, matchAllWhenSearchEmpty: true }`
|
||||
* @defaultValue { ignoreLocation: true, threshold: 0.1, keys: ['label', 'suffix'], resultLimit: 12, matchAllWhenSearchEmpty: true }
|
||||
*/
|
||||
fuse?: UseFuseOptions<T>
|
||||
class?: any
|
||||
|
||||
Reference in New Issue
Block a user