import React, { forwardRef } from 'react' import type { PropsWithChildren } from 'react' import { Label, Select } from '../..' import type { SelectProps } from '../../atoms/Select' export interface SelectFieldProps extends SelectProps { /** * Defines the text displayed in the label right next to the Select. */ label: string } const SelectField = forwardRef< HTMLDivElement, PropsWithChildren >(function SelectField( { id, label, options, testId = 'fs-select-field', ...otherProps }, ref ) { return (