docs(command-palette): update

This commit is contained in:
Benjamin Canac
2024-09-20 18:40:52 +02:00
parent 32ac575d56
commit 8709717a32
19 changed files with 780 additions and 140 deletions

View File

@@ -65,7 +65,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`).
* Display a close button in the input (useful when inside a Modal for example).
* `{ size: 'md', color: 'gray', variant: 'ghost' }`{lang="ts-type"}
* @defaultValue false
*/
@@ -78,7 +78,15 @@ export interface CommandPaletteProps<G, T> extends Pick<ComboboxRootProps, 'mult
groups?: G[]
/**
* Options for [useFuse](https://vueuse.org/integrations/useFuse).
* @defaultValue { ignoreLocation: true, threshold: 0.1, keys: ['label', 'suffix'], resultLimit: 12, matchAllWhenSearchEmpty: true }
* @defaultValue {
fuseOptions: {
ignoreLocation: true,
threshold: 0.1,
keys: ['label', 'suffix']
},
resultLimit: 12,
matchAllWhenSearchEmpty: true
}
*/
fuse?: UseFuseOptions<T>
class?: any