UNPKG

634 BTypeScriptView Raw
1import * as React from 'react';
2import { CSSModule } from './utils';
3
4export type ColumnProps =
5 | string
6 | boolean
7 | number
8 | {
9 size?: boolean | number | string;
10 offset?: string | number;
11 order?: string | number;
12 };
13
14export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
15 [key: string]: any;
16 tag?: React.ElementType;
17 cssModule?: CSSModule;
18 xs?: ColumnProps;
19 sm?: ColumnProps;
20 md?: ColumnProps;
21 lg?: ColumnProps;
22 xl?: ColumnProps;
23 xxl?: ColumnProps;
24
25 // custom widths
26 widths?: string[];
27}
28
29declare class Col extends React.Component<ColProps> {}
30export default Col;