import { ComponentType, PropsWithChildren } from 'react'; import clsx from 'clsx'; import { useInputGroupContext } from './InputGroup'; type BaseProps = { as?: ComponentType | string; required?: boolean; }; export function InputGroupAddon({ children, as = 'span', required, ...props }: PropsWithChildren & TProps>) { useInputGroupContext(); const Component = as as 'span'; return ( {children} ); }