CommandOption
Import
import { CommandOption } from 'commandkey';
Use
<CommandOption>Hello World!</CommandOption>
Props
value
The value of the option.id
The identification of the optionclassName
Edit the styles of the button using a Tailwind CSS class.children
Inside it uses any html tagonClick
Execute a function after click the button.
Interface
export interface CommandOptionProps { value?: string | number | readonly string[] | undefined; id?: string; className?: string | any; children: React.ReactNode; onClick?: () => void;}