1. Import:
import { CommandList } from "superkey";
2. Use:
<CommandList>{/* Here your CommandOption */}</CommandList>
⚙️ Props:
Prop | Description | Required |
---|---|---|
children | Inside it uses CommandOption components. | ✅ |
className | Edit the default styles. | - |
⚙️ Interface:
export interface SharedCommandProps {
className?: string;
}
export interface CommandListProps extends SharedCommandProps {
children: React.ReactNode;
}