-
Notifications
You must be signed in to change notification settings - Fork 17
/
story.js
56 lines (54 loc) · 1.58 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
51
52
53
54
55
56
import { html } from 'lit';
import {
CarSvg,
TickSvg,
UmbrellaSvg,
} from '@axa-ch-webhub-cloud/materials/images';
import { args, argTypes } from './story.args';
import changelog from './CHANGELOG.md';
import readme from './README.md';
import './index';
export default {
title: 'Components/Policy Features',
parameters: {
readme,
usage: {
propsPureHTML: 'title="Your main title" variant="axa-blue"',
propsReact: 'title="Your main title" variant="axa-blue"',
},
changelog,
layout: 'fullscreen',
},
args,
argTypes,
};
export const PolicyFeatures = ({
variant,
title,
firstItemTitle,
firstItemIconUrl,
firstItemDescription,
}) => html`
<axa-policy-features title="${title}" variant="${variant}">
<axa-policy-features-item
title="${firstItemTitle}"
description="${firstItemDescription}"
icon="${firstItemIconUrl || CarSvg}"
></axa-policy-features-item>
<axa-policy-features-item
title="24/7 assistance"
description="We reward safe drivers : 75% no claims discount + an extra 10% off if you get a quote online. This is a long text."
icon="${UmbrellaSvg}"
></axa-policy-features-item>
<axa-policy-features-item
title="Discount partners"
description="This SVG is loaded externally."
icon="${TickSvg}"
></axa-policy-features-item>
<axa-policy-features-item
title="Online & Apps"
description="We reward safe drivers : 75% no claims discount + an extra 10% off if you get a quote online"
icon="${CarSvg}"
></axa-policy-features-item>
</axa-policy-features>
`;