UNPKG

1.16 kBTypeScriptView Raw
1import React from 'react';
2import { BsPrefixProps, 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 BsPrefixProps, React.HTMLAttributes<HTMLElement> {
9 size?: 'sm' | 'lg';
10 hasValidation?: boolean;
11}
12declare type InputGroup = BsPrefixRefForwardingComponent<'div', InputGroupProps> & {
13 Append: typeof InputGroupAppend;
14 Prepend: typeof InputGroupPrepend;
15 Text: typeof InputGroupText;
16 Checkbox: typeof InputGroupCheckbox;
17 Radio: typeof InputGroupRadio;
18};
19/**
20 *
21 * @property {InputGroupAppend} Append
22 * @property {InputGroupPrepend} Prepend
23 * @property {InputGroupText} Text
24 * @property {InputGroupRadio} Radio
25 * @property {InputGroupCheckbox} Checkbox
26 */
27declare const InputGroup: InputGroup;
28export default InputGroup;