'use client'; import {composeRenderProps} from 'react-aria-components/composeRenderProps'; import {Group, type GroupProps} from 'react-aria-components/Group'; import {InputContext} from 'react-aria-components/Input'; import {Label} from './Form'; import {useId} from 'react'; import './InputGroup.css'; interface InputGroupProps extends GroupProps { label?: string; } export function InputGroup(props: InputGroupProps) { let id = useId(); return (
{props.label && ( )} {composeRenderProps(props.children, (children, renderProps) => ( {children} ))}
); }