// @flow import * as React from "react"; import cn from "classnames"; import Form from "./Form.react"; import FormInputGroupAppend from "./FormInputGroupAppend.react"; import FormInputGroupPrepend from "./FormInputGroupPrepend.react"; import type { Props as InputProps } from "./FormInput.react"; type Props = {| +children?: React.Node, +className?: string, +append?: React.Node, +prepend?: React.Node, +RootComponent?: React.ElementType, +inputProps?: InputProps, |}; function FormInputGroup(props: Props): React.Node { const { className, append, prepend, RootComponent, inputProps } = props; const classes = cn( { "input-group": true, }, className ); const Component = RootComponent || "div"; const children = inputProps ?