UNPKG

@octopusdeploy/design-system-components

Version:
24 lines (23 loc) 856 B
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 Rollout currently paused — do not use in new code until further notice. * Use `<DeprecatedSelect>` instead. * @see <DeprecatedSelect> from @octopusdeploy/design-system-octopus-components * * @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;