(props: InputGroupProps)
| 11 | } |
| 12 | |
| 13 | export function InputGroup(props: InputGroupProps) { |
| 14 | let id = useId(); |
| 15 | return ( |
| 16 | <div className="input-group"> |
| 17 | {props.label && ( |
| 18 | <Label elementType="span" id={id}> |
| 19 | {props.label} |
| 20 | </Label> |
| 21 | )} |
| 22 | <Group {...props} aria-labelledby={id} className="react-aria-Group inset"> |
| 23 | {composeRenderProps(props.children, (children, renderProps) => ( |
| 24 | <InputContext.Provider value={{disabled: renderProps.isDisabled}}> |
| 25 | {children} |
| 26 | </InputContext.Provider> |
| 27 | ))} |
| 28 | </Group> |
| 29 | </div> |
| 30 | ); |
| 31 | } |
nothing calls this directly
no test coverage detected