This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathindex.d.ts
65 lines (53 loc) · 2.08 KB
/
index.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
63
64
65
// TypeScript definitions for flexbox-react
// Project: https://github.com/nachoaIvarez/flexbox-react
// Definitions by: Nicholas Gonzalez <https://github.com/nicholasgonzalezsc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from 'react';
export as namespace FlexboxReact;
declare namespace FlexboxReact {
type AlignContent = 'center' | 'flex-end' | 'flex-start' | 'space-around' | 'space-between' | 'stretch';
type AlignItems = 'baseline' | 'center' | 'flex-end' | 'flex-start' | 'stretch';
type Elements = 'article' | 'aside' | 'div' | 'figure' | 'footer' | 'header' | 'main' | 'nav' | 'section';
type FlexDisplays = 'flex' | 'inline-flex';
type FlexDirections = 'column-reverse' | 'column' | 'row-reverse' | 'row';
type FlexWraps = 'nowrap' | 'wrap-reverse' | 'wrap';
type JustifyContent = 'center' | 'flex-end' | 'flex-start' | 'space-around' | 'space-between' | 'space-evenly';
// <Flexbox />
interface FlexboxProps extends React.HTMLAttributes<HTMLElement> {
alignContent?: AlignContent;
alignItems?: AlignItems;
alignSelf?: AlignItems;
children?: React.ReactNode;
className?: string;
display?: FlexDisplays;
element?: Elements;
flex?: string;
flexBasis?: string;
flexDirection?: FlexDirections;
flexGrow?: number;
flexShrink?: number;
flexWrap?: FlexWraps;
height?: string;
inline?: boolean;
justifyContent?: JustifyContent;
margin?: string;
marginBottom?: string;
marginLeft?: string;
marginRight?: string;
marginTop?: string;
maxHeight?: string;
maxWidth?: string;
minHeight?: string;
minWidth?: string;
order?: number;
padding?: string;
paddingBottom?: string;
paddingLeft?: string;
paddingRight?: string;
paddingTop?: string;
style?: Object;
width?: string;
}
export class Flexbox extends React.Component<FlexboxProps, {}> {}
}
export default FlexboxReact.Flexbox;