@carbon/react
Version:
React components for the Carbon Design System
49 lines (48 loc) • 1.49 kB
TypeScript
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
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): import("react/jsx-runtime").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>;
};
};
export default SelectItemGroup;