/
index.js.flow
45 lines (39 loc) · 940 Bytes
/
index.js.flow
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
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/heading/
*/
import * as React from "react";
import type { Globals } from "../common/common.js.flow";
import type { spaceAfter } from "../common/getSpacingToken/index.js.flow";
export type As = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
type Type =
| "display"
| "displaySubtitle"
| "title1"
| "title2"
| "title3"
| "title4"
| "title5"
| "title6";
type Align = "start" | "center" | "end" | "justify";
export type MediaQuery = {|
+type?: Type,
+align?: Align,
...spaceAfter,
|};
export type Props = {|
...Globals,
...spaceAfter,
+as?: As,
+align?: Align,
+type?: Type,
+children: React.Node,
+inverted?: boolean,
+dataA11ySection?: string,
+mediumMobile?: MediaQuery,
+largeMobile?: MediaQuery,
+tablet?: MediaQuery,
+desktop?: MediaQuery,
+largeDesktop?: MediaQuery,
|};
declare export default React.ComponentType<Props>;