Skip to content

CommandOption

Import

import { CommandOption } from 'commandkey';

Use

<CommandOption>Hello World!</CommandOption>

Props

  • value The value of the option.
  • id The identification of the option
  • className Edit the styles of the button using a Tailwind CSS class.
  • children Inside it uses any html tag
  • onClick 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;
}