import React from 'react'; import { HelperText } from '../helper-text'; import { Input, type InputProps } from '../input'; import { Label } from '../label'; export interface TextFieldProps extends InputProps { label?: string; helperText?: string; } const TextField = React.forwardRef( ({ label, helperText, variant = 'default', ...props }, ref) => { return (
{label && } {helperText && {helperText}}
); } ); TextField.displayName = 'TextField'; export { TextField };