;
/**
* Set this to `true` if there is a floating label with the `TextField` or
* `TextArea`.
*
* @defaultValue `false`
*/
label?: boolean;
}
/**
* **Client Component**
* This might be able to become a server component if I remove the useFormTheme hook
*
* This component is used to add the additional `TextField`, `TextArea`, and
* `Select` theme styles.
*
* @internal
*/
export function TextFieldContainer(
props: TextFieldContainerProps
): ReactElement {
const {
ref,
children,
className,
dense,
error,
label,
active,
inline,
readOnly,
disabled,
leftAddon,
leftAddonProps,
disableLeftAddonStyles,
rightAddon,
rightAddonProps,
disableRightAddonStyles,
theme: propTheme,
underlineDirection: propUnderlineDirection,
...remaining
} = props;
const theme = getFormConfig("theme", propTheme);
const underlineDirection = getFormConfig(
"underlineDirection",
propUnderlineDirection
);
return (
{leftAddon}
{children}
{rightAddon}
);
}