UNPKG

@mskcc/carbon-react

Version:

Carbon react components for the MSKCC DSM

54 lines (53 loc) 1.45 kB
/** * MSKCC DSM 2021, 2023 */ import PropTypes from 'prop-types'; import { HTMLAttributes } from 'react'; export interface SelectItemProps extends HTMLAttributes<HTMLOptionElement> { /** * Specify an optional className to be applied to the node */ className?: string; /** * Specify whether the <SelectItem> should be disabled */ disabled?: boolean; /** * Specify whether the <SelectItem> is hidden */ hidden?: boolean; /** * Provide the contents of your <SelectItem> */ text: string; /** * Specify the value of the <SelectItem> */ value: any; } declare const SelectItem: { ({ className, value, disabled, hidden, text, ...other }: SelectItemProps): JSX.Element; propTypes: { /** * Specify an optional className to be applied to the node */ className: PropTypes.Requireable<string>; /** * Specify whether the <SelectItem> should be disabled */ disabled: PropTypes.Requireable<boolean>; /** * Specify whether the <SelectItem> is hidden */ hidden: PropTypes.Requireable<boolean>; /** * Provide the contents of your <SelectItem> */ text: PropTypes.Validator<string>; /** * Specify the value of the <SelectItem> */ value: PropTypes.Validator<any>; }; }; export default SelectItem;