🎨 CommandOption

Option component.

1. Import:

import { CommandOption } from "superkey";

2. Use:

<CommandOption value="Hello">
  <h1>Hello</h1>
</CommandOption>

⚙️ Props:

PropDescriptionRequired
valueThe value of the option.
childrenOption content.
classNameEdit the styles of the option.-
activeClassNameEdit the active styles of the option.-

⚙️ Interface:

export interface SharedCommandProps {
  className?: string;
}

export interface CommandOptionProps extends SharedCommandProps {
  value: string | (() => void);
  activeClassName?: string;
  children: React.ReactNode;
}