UNPKG

581 BTypeScriptView Raw
1import * as React from 'react';
2
3import { BsPrefixComponent } from './helpers';
4
5type 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';
19type ColSize = true | 'auto' | NumberAttr;
20type ColSpec =
21 | ColSize
22 | { span?: ColSize; offset?: NumberAttr; order?: NumberAttr };
23
24export interface ColProps {
25 xs?: ColSpec;
26 sm?: ColSpec;
27 md?: ColSpec;
28 lg?: ColSpec;
29 xl?: ColSpec;
30}
31
32declare class Col<
33 As extends React.ElementType = 'div'
34> extends BsPrefixComponent<As, ColProps> {}
35
36export default Col;