forked from roylee0704/react-flexbox-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-flexbox-grid.d.ts
60 lines (48 loc) · 1.6 KB
/
react-flexbox-grid.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Type definitions for react-flexbox-grid v0.10.2
// Project: https://github.com/roylee0704/react-flexbox-grid
// Definitions by: Ruslan Ibragimov <https://github.com/IRus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {Component} from 'react';
declare namespace __ReactFlexboxGrid {
type ViewportSizeType = 'xs' | 'sm' | 'md' | 'lg';
type ColumnSizeType = number | boolean;
export interface GridProps {
readonly fluid?: boolean,
readonly className?: string,
readonly tagName?: string,
}
export interface RowProps {
readonly reverse?: boolean,
readonly start?: ViewportSizeType,
readonly center?: ViewportSizeType,
readonly end?: ViewportSizeType,
readonly top?: ViewportSizeType,
readonly middle?: ViewportSizeType,
readonly bottom?: ViewportSizeType,
readonly around?: ViewportSizeType,
readonly between?: ViewportSizeType,
readonly className?: string,
readonly tagName?: string,
}
export interface ColProps {
readonly xs?: ColumnSizeType,
readonly sm?: ColumnSizeType,
readonly md?: ColumnSizeType,
readonly lg?: ColumnSizeType,
readonly xsOffset?: number,
readonly smOffset?: number,
readonly mdOffset?: number,
readonly lgOffset?: number,
readonly first?: ViewportSizeType,
readonly last?: ViewportSizeType,
readonly className?: string,
readonly tagName?: string,
}
export class Grid extends Component<GridProps, {}> {
}
export class Row extends Component<RowProps, {}> {
}
export class Col extends Component<ColProps, {}> {
}
}
export = __ReactFlexboxGrid;