-
Notifications
You must be signed in to change notification settings - Fork 0
/
blockTitle.stories.js
51 lines (38 loc) · 2.28 KB
/
blockTitle.stories.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
import './blockTitle.js';
export default {
title: 'LondonParkour/text/blockTitle',
component: 'ldnpk-blockTitle',
tags: ['autodocs'],
// Docs Page Description
parameters: { docs: { description: { component:
'The LondonParkour BlockTitle Component.',
}, }, },
};
// ╔═══════════════════════════════════════════════════════════════════════════╗
// ║ ║
// ║ STORIES ║
// ║ ║
// ╚═══════════════════════════════════════════════════════════════════════════╝
// ╭───────────────────────────────────────────────────────╮
// │ │
// │ Default Style │
// │ │
// ╰───────────────────────────────────────────────────────╯
export const Default = ({}) => {
const htmlString =
/* html */`
<style>
ldnpk-blocktitle {
--gradientFrom: var(--color-emerald-300);
--gradientTo: var(--color-emerald-500);
--highlighted: var(--color-emerald-50);
}
</style>
<ldnpk-blocktitle highlighted="Title">
<div slot="title">The Title with highlight.</div>
<div slot="subheading">Subheading.</div>
<div slot="paragraph">With well over a decade of full-time international parkour and movement coaching, our coaches are among the most accomplished in the world. Instructing all levels of ability, professions and demographics, we’re certain we can help you too.</div>
</ldnpk-blocktitle>
`
return htmlString;
};