UNPKG

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