Skip to content

CommandPalette ​

Tout ce que l'application sait faire, au clavier.

La recherche porte aussi sur des mots-clés invisibles : quelqu'un qui tape « facture » doit trouver « Nouvelle vente » sans avoir appris comment l'action s'appelle ici.

Installation ​

bash
sia-ui add command-palette

Ou par le paquet, sans rien copier :

tsx
import { CommandPalette } from "@sia-ui/react-web";

Props ​

PropTypeDéfautDescription
* itemsCommandItem[]—
* onOpenChange(open: boolean) => void—
* openboolean—
classNamestring—
emptyLabelstring—
placeholderstring—

* obligatoire.

Voir aussi ​

Publié sous licence MIT.