🎨 Command

Command palette component.

1. Import:

import { Command } from "superkey";

2. Use:

<Command open={true} onClose={() => {}}>
  {/* Here your CommandInput, CommandList or CommandOption */}
</Command>

3. Props:

-PropDescriptionRequired
⚙️childrenInside it uses the input, list and options components.Required
⚙️openOpen or close the command palette.Required
⚙️onCloseFunction to be executed when close the command palette.Required
⚙️commandFunctionFunction to be executed when click an option.Optional
⚙️afterLeaveFunction to be executed after close the command palette.Optional
🎨classNameClass to be added to the command palette.Optional
🎨overlayClassNameClass to be added to the overlay.Optional