import React from 'react'; import { Append, IAppend } from './Append'; import { Prepend, IPrepend } from './Prepend'; import { Text, IText } from './Text'; export interface IInputGroup { className?: any; size?: 'sm' | 'lg'; [x: string]: any; } export interface IInputGroupSubComponents { Prepend: React.FC; Append: React.FC; Text: React.FC; } export const InputGroup: React.FC & IInputGroupSubComponents = (props) => { const { children, className = '', size, ...otherProps } = props; return (
{children}
); }; InputGroup.Append = Append; InputGroup.Prepend = Prepend; InputGroup.Text = Text;