forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.tsx
More file actions
38 lines (34 loc) · 682 Bytes
/
elements.tsx
File metadata and controls
38 lines (34 loc) · 682 Bytes
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
import styled from '../../../styled-components'
const icons = {
'chevron-down': '\f078',
'chevron-up': '\f077',
'plus-square': '\f0fe',
terminal: '\f120',
database: '\f1c0',
code: '\f121',
save: '\f0c7',
cogs: '\f085',
chain: '\f0c1',
calculator: '\f1ec',
close: '\f00d',
trash: '\f014',
flask: '\f0c3',
}
export const IconElement = styled<
{
icon: string
},
'span'
>('span')`
font-family: 'icomoon' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
:before {
content: "${({ icon }) => icons[icon]}";
}
`