@octopusdeploy/design-system-components
Version:
The design systems component library.
22 lines (21 loc) • 748 B
TypeScript
import type { SharedSelectProps } from "./SelectBase";
export interface SelectProps<T> extends SharedSelectProps<T> {
/**
* The current value of the select
*/
value: string | undefined;
/**
* The action to perform when the form control field is changed.
*/
onChange: (newValue: string | undefined) => void;
}
/**
* Select component
*
* @remarks Only use in pre-approved areas, as in #project-form-uplift if unsure before using.
*
* @param props - SelectProps
* @param props.value - The current value of the select
* @param props.onChange - The action to perform when the form control field is changed.
*/
export declare function Select<T>(props: SelectProps<T>): import("react/jsx-runtime").JSX.Element;