-
Notifications
You must be signed in to change notification settings - Fork 831
/
icon.ts
51 lines (48 loc) · 1.19 KB
/
icon.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
import {ArrowUp} from 'baseui/icon';
import {PropTypes} from 'react-view';
import {TConfig} from '../types';
const iconProps = require('!!extract-react-types-loader!../../../../src/icon/icon.js');
const IconConfig: TConfig = {
imports: {
'baseui/icon': {
named: ['ArrowUp'],
},
},
scope: {ArrowUp},
theme: [],
props: {
size: {
value: 64,
type: PropTypes.Number,
description:
'Size of element, will be passed to the svg width/height style. Can also be a value included in.',
},
color: {
value: undefined,
type: PropTypes.String,
description: 'Color of icon, will be used as svg fill.',
},
title: {
value: undefined,
type: PropTypes.String,
description:
'Allows you to set the SVG <title> label, which is used for accessibility.',
},
overrides: {
value: undefined,
type: PropTypes.Custom,
description: 'Lets you customize all aspects of the component.',
custom: {
names: ['Svg'],
sharedProps: {
$size: 'size',
$color: 'color',
},
},
},
},
mapTokensToProps: {
ArrowUp: iconProps,
},
};
export default IconConfig;