1. Import:
import { Command } from "superkey";
2. Use:
<Command open={true} onClose={() => {}}>
{}
</Command>
3. Props:
- | Prop | Description | Required |
---|
⚙️ | children | Inside it uses the input, list and options components. | Required |
⚙️ | open | Open or close the command palette. | Required |
⚙️ | onClose | Function to be executed when close the command palette. | Required |
⚙️ | commandFunction | Function to be executed when click an option. | Optional |
⚙️ | afterLeave | Function to be executed after close the command palette. | Optional |
🎨 | className | Class to be added to the command palette. | Optional |
🎨 | overlayClassName | Class to be added to the overlay. | Optional |