UNPKG

864 BTypeScriptView Raw
1import * as React from 'react';
2declare type ColSpanType = number | string;
3declare type FlexType = number | 'none' | 'auto' | string;
4export interface ColSize {
5 flex?: FlexType;
6 span?: ColSpanType;
7 order?: ColSpanType;
8 offset?: ColSpanType;
9 push?: ColSpanType;
10 pull?: ColSpanType;
11}
12export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
13 flex?: FlexType;
14 span?: ColSpanType;
15 order?: ColSpanType;
16 offset?: ColSpanType;
17 push?: ColSpanType;
18 pull?: ColSpanType;
19 xs?: ColSpanType | ColSize;
20 sm?: ColSpanType | ColSize;
21 md?: ColSpanType | ColSize;
22 lg?: ColSpanType | ColSize;
23 xl?: ColSpanType | ColSize;
24 xxl?: ColSpanType | ColSize;
25 prefixCls?: string;
26}
27declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
28export default Col;