UNPKG

1.26 kBTypeScriptView Raw
1/// <reference types="react" />
2import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
3declare const InputGroupAppend: BsPrefixRefForwardingComponent<"div", unknown>;
4declare const InputGroupPrepend: BsPrefixRefForwardingComponent<"div", unknown>;
5declare const InputGroupText: BsPrefixRefForwardingComponent<"span", unknown>;
6declare const InputGroupCheckbox: (props: any) => JSX.Element;
7declare const InputGroupRadio: (props: any) => JSX.Element;
8export interface InputGroupProps extends BsPrefixPropsWithChildren {
9 size?: 'sm' | 'lg';
10 hasValidation?: boolean;
11}
12declare type InputGroupExtras = {
13 Append: typeof InputGroupAppend;
14 Prepend: typeof InputGroupPrepend;
15 Text: typeof InputGroupText;
16 Checkbox: typeof InputGroupCheckbox;
17 Radio: typeof InputGroupRadio;
18};
19declare type InputGroup = BsPrefixRefForwardingComponent<'div', InputGroupProps>;
20/**
21 *
22 * @property {InputGroupAppend} Append
23 * @property {InputGroupPrepend} Prepend
24 * @property {InputGroupText} Text
25 * @property {InputGroupRadio} Radio
26 * @property {InputGroupCheckbox} Checkbox
27 */
28declare const InputGroup: InputGroup;
29declare const InputGroupWithExtras: InputGroup & InputGroupExtras;
30export default InputGroupWithExtras;