-
Notifications
You must be signed in to change notification settings - Fork 0
/
Heading.tsx
64 lines (58 loc) · 1.47 KB
/
Heading.tsx
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
import * as React from 'react';
const H1 = (props: React.HTMLProps<HTMLHeadingElement>) => (
<h1
itemProp={props.itemProp}
itemScope={props.itemScope}
itemType={props.itemType}
className={`${props.className} py-4 text-2xl text-center text-brand tracking-wide font-normal leading-10`}
>
{props.children}
</h1>
);
const H2 = (props: React.HTMLProps<HTMLHeadingElement>) => (
<h2
itemProp={props.itemProp}
itemScope={props.itemScope}
itemType={props.itemType}
className={`${props.className} py-3 text-xl text-left text-brand font-normal leading-2`}
>
{props.children}
</h2>
);
const H3 = (props: React.HTMLProps<HTMLHeadingElement>) => (
<h3
itemProp={props.itemProp}
itemScope={props.itemScope}
itemType={props.itemType}
className={`${props.className} text-lg py-2 text-left text-brand font-normal`}
>
{props.children}
</h3>
);
const H4 = (props: React.HTMLProps<HTMLHeadingElement>) => (
<h4
itemProp={props.itemProp}
itemScope={props.itemScope}
itemType={props.itemType}
className={`${props.className} text-base text-left text-brand font-normal`}
>
{props.children}
</h4>
);
const Jumbo = (props: React.HTMLProps<HTMLHeadingElement>) => (
<h1
itemProp={props.itemProp}
itemScope={props.itemScope}
itemType={props.itemType}
className={`${props.className} text-3xl text-left font-normal`}
>
{props.children}
</h1>
);
export default {
H1,
H2,
H3,
H4,
Jumbo,
};