UNPKG

@mskcc/carbon-react

Version:

Carbon react components for the MSKCC DSM

56 lines (52 loc) 1.49 kB
/** * MSKCC 2021, 2024 */ import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js'; import React__default from 'react'; import PropTypes from 'prop-types'; import FluidSelect from '../FluidSelect/FluidSelect.js'; const FluidTimePickerSelect = /*#__PURE__*/React__default.forwardRef(function FluidTimePickerSelect(_ref, ref) { let { children, className, ...other } = _ref; return /*#__PURE__*/React__default.createElement(FluidSelect, _extends({ className: className, ref: ref }, other), children); }); FluidTimePickerSelect.propTypes = { /** * Provide the contents of your Select */ children: PropTypes.node, /** * Specify an optional className to be applied to the node containing the label and the select box */ className: PropTypes.string, /** * Optionally provide the default value of the `<select>` */ defaultValue: PropTypes.any, /** * Specify whether the control is disabled */ disabled: PropTypes.bool, /** * Specify a custom `id` for the `<select>` */ id: PropTypes.string.isRequired, /** * Provide label text to be read by screen readers when interacting with the * control */ labelText: PropTypes.node, /** * Provide an optional `onChange` hook that is called each time the value of * the underlying `<input>` changes */ onChange: PropTypes.func }; var FluidTimePickerSelect$1 = FluidTimePickerSelect; export { FluidTimePickerSelect$1 as default };