@carbon/react
Version:
React components for the Carbon Design System
53 lines (52 loc) • 1.61 kB
TypeScript
/**
* Copyright IBM Corp. 2016, 2025
*
* 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 React from 'react';
export type TimePickerSelectProps = {
/**
* Provide the contents of your TimePickerSelect
*/
children?: React.ReactNode;
/**
* Specify an optional className to be applied to the node containing the label and the select box
*/
className?: string;
/**
* Optionally provide the default value of the `<select>`
*/
defaultValue?: any;
/**
* Specify whether the control is disabled
*/
disabled?: boolean;
/**
* Specify a custom `id` for the `<select>`
*/
id: string;
} & React.SelectHTMLAttributes<HTMLSelectElement> & React.InputHTMLAttributes<HTMLSelectElement>;
declare const TimePickerSelect: React.ForwardRefExoticComponent<{
/**
* Provide the contents of your TimePickerSelect
*/
children?: React.ReactNode;
/**
* Specify an optional className to be applied to the node containing the label and the select box
*/
className?: string;
/**
* Optionally provide the default value of the `<select>`
*/
defaultValue?: any;
/**
* Specify whether the control is disabled
*/
disabled?: boolean;
/**
* Specify a custom `id` for the `<select>`
*/
id: string;
} & React.SelectHTMLAttributes<HTMLSelectElement> & React.InputHTMLAttributes<HTMLSelectElement> & React.RefAttributes<HTMLSelectElement>>;
export default TimePickerSelect;