-
Notifications
You must be signed in to change notification settings - Fork 17
/
story.js
49 lines (47 loc) · 960 Bytes
/
story.js
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
import { html } from 'lit';
import changelog from './CHANGELOG.md';
import readme from './README.md';
import { args, argTypes } from './story.args';
import './index';
export default {
title: 'Components/Input File',
parameters: {
readme,
usage: {
innerHTML: 'I am a upload',
propsReact: 'onChange={() => alert("you interacted with me")}',
},
changelog,
},
args,
argTypes,
};
export const InputFile = ({
text,
variant,
icon,
large,
motionOff,
disabled,
accept,
capture,
multiple,
}) => html`
<div
style="${variant.includes('inverted')
? `background-color: #00008f; padding: 10px;`
: ''}"
>
<axa-input-file
variant="${variant}"
icon="${icon}"
?large="${large}"
?motionOff="${motionOff}"
?disabled="${disabled}"
accept="${accept}"
text="${text}"
?capture="${capture}"
?multiple="${multiple}"
></axa-input-file>
</div>
`;