-
Notifications
You must be signed in to change notification settings - Fork 206
/
react-flexbox-grid.d.ts
62 lines (50 loc) · 1.8 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
61
62
// 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, HTMLAttributes} from 'react';
declare namespace __ReactFlexboxGrid {
type ViewportSizeType = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
type ColumnSizeType = number | boolean;
export interface GridProps extends HTMLAttributes<HTMLDivElement> {
readonly fluid?: boolean,
readonly className?: string,
readonly tagName?: string,
}
export interface RowProps extends HTMLAttributes<HTMLDivElement> {
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 extends HTMLAttributes<HTMLDivElement> {
readonly xs?: ColumnSizeType,
readonly sm?: ColumnSizeType,
readonly md?: ColumnSizeType,
readonly lg?: ColumnSizeType,
readonly xl?: ColumnSizeType,
readonly xsOffset?: number,
readonly smOffset?: number,
readonly mdOffset?: number,
readonly lgOffset?: number,
readonly xlOffset?: 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;