1 | import * as React from 'react';
|
2 |
|
3 | import { BsPrefixComponent } from './helpers';
|
4 |
|
5 | type NumberAttr =
|
6 | | number
|
7 | | '1'
|
8 | | '2'
|
9 | | '3'
|
10 | | '4'
|
11 | | '5'
|
12 | | '6'
|
13 | | '7'
|
14 | | '8'
|
15 | | '9'
|
16 | | '10'
|
17 | | '11'
|
18 | | '12';
|
19 | type ColSize = true | 'auto' | NumberAttr;
|
20 | type ColSpec =
|
21 | | ColSize
|
22 | | { span?: ColSize; offset?: NumberAttr; order?: NumberAttr };
|
23 |
|
24 | export interface ColProps {
|
25 | xs?: ColSpec;
|
26 | sm?: ColSpec;
|
27 | md?: ColSpec;
|
28 | lg?: ColSpec;
|
29 | xl?: ColSpec;
|
30 | }
|
31 |
|
32 | declare class Col<
|
33 | As extends React.ElementType = 'div'
|
34 | > extends BsPrefixComponent<As, ColProps> {}
|
35 |
|
36 | export default Col;
|