import React from 'react' import { useFieldContext } from '../..' import Input, { type InputProps } from '../../../input' import Label from '../label' import cn from '@/utils/classnames' type TextFieldProps = { label: string isRequired?: boolean showOptional?: boolean tooltip?: string className?: string labelClassName?: string } & Omit const TextField = ({ label, isRequired, showOptional, tooltip, className, labelClassName, ...inputProps }: TextFieldProps) => { const field = useFieldContext() return (
) } export default TextField