UNPKG

@carbon/react

Version:

React components for the Carbon Design System

57 lines (56 loc) 1.62 kB
/** * 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 } 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): import("react/jsx-runtime").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;