UNPKG

@mskcc/carbon-react

Version:

Carbon react components for the MSKCC DSM

49 lines (48 loc) 1.37 kB
/** * MSKCC DSM 2021, 2023 */ import PropTypes from 'prop-types'; import { HTMLAttributes, ReactNode } from 'react'; export interface SelectItemGroupProps extends HTMLAttributes<HTMLOptGroupElement> { /** * Provide the contents of your <SelectItemGroup> */ children?: ReactNode; /** * Specify an optional className to be applied to the node */ className?: string; /** * Specify whether the <SelectItemGroup> should be disabled */ disabled?: boolean; /** * Specify the label to be displayed */ label: string; } declare const SelectItemGroup: { ({ children, className, disabled, label, ...other }: SelectItemGroupProps): JSX.Element; propTypes: { /** * Provide the contents of your <SelectItemGroup> */ children: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** * Specify an optional className to be applied to the node */ className: PropTypes.Requireable<string>; /** * Specify whether the <SelectItemGroup> should be disabled */ disabled: PropTypes.Requireable<boolean>; /** * Specify the label to be displayed */ label: PropTypes.Validator<string>; }; defaultProps: { disabled: boolean; }; }; export default SelectItemGroup;