-
Notifications
You must be signed in to change notification settings - Fork 17
/
story.js
50 lines (47 loc) · 1.07 KB
/
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
50
import { html } from 'lit';
import { args, argTypes } from './story.args';
import changelog from './CHANGELOG.md';
import readme from './README.md';
import './index';
import '../../10-atoms/link';
export default {
title: 'Components/Cookie Disclaimer',
parameters: {
readme,
usage: {
propsReact: 'title="Any Title"',
},
changelog,
layout: 'fullscreen',
},
args,
argTypes,
};
export const CookieDisclaimer = ({
buttonname,
title,
fixed,
description,
href,
slot,
}) => html`
<axa-cookie-disclaimer
buttonname="${buttonname}"
title="${title}"
variant="${fixed ? 'fixed' : ''}"
>
<p>${description}</p>
<axa-link variant="arrowright-animated-white" href="${href}">
${slot}
</axa-link>
</axa-cookie-disclaimer>
<!-- This is code only for the demo -->
<br />
<div style="border: 1px solid red; padding: 10px;">
<h1>
This is not rendered by the component. This story disappears after click
(Empty your cache and/or localStorage if this page is only showing this
message)
</h1>
</div>
`;