-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsnippets.ts
260 lines (260 loc) · 7.26 KB
/
snippets.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
export default [
{
group: "Button",
name: "Native Button",
code: `
<Button
label="Native Button"
variant="primary"
/>
`,
},
{
group: "Button",
name: "Link Button",
code: `
<Button
label="Link Button"
variant="secondary"
target="#"
/>
`,
},
{
group: "Button",
name: "Disabled Button",
code: `
<Button
label="Disabled Button"
variant="primary"
disabled={true}
/>
`,
},
{
group: "Button",
name: "Primary Button",
code: `
<Button
label="Primary Button"
variant="primary"
/>
`,
},
{
group: "Button",
name: "Secondary Button",
code: `
<Button
label="Secondary Button"
variant="secondary"
/>
`,
},
{
group: "Button",
name: "Tertiary Button",
code: `
<Button
label="Tertiary Button"
variant="tertiary"
/>
`,
},
{
group: "Button",
name: "Button Bar with Bedrock",
code: `
<Split gutter="md">
<Button label="Primary Button" variant="primary" />
<Button label="Secondary Button" variant="secondary" />
<Button label="Tertiary Button" variant="tertiary" />
</Split>
`,
},
{
group: "Headline",
name: "H1",
code: `
<Headline level="h1" style="h1" text="Headline level h1" />
`,
},
{
group: "Headline",
name: "H2",
code: `
<Headline level="h2" style="h2" text="Headline level h2" />
`,
},
{
group: "Headline",
name: "H3",
code: `
<Headline level="h3" style="h3" text="Headline level h3" />
`,
},
{
group: "Headline",
name: "H4",
code: `
<Headline level="h4" style="h4" text="Headline level h4" />
`,
},
{
group: "Headline",
name: "Subheadline",
code: `
<Headline text="With a subheadline" sub="This is a subheadline, displayed below the headline" />
`,
},
{
group: "Headline",
name: "Subheadline Order Swapped",
code: `
<Headline text="With a swapped subheadline" sub="This is a subheadline, displayed above the headline" switchOrder={true} />
`,
},
{
group: "Headline",
name: "Markdown",
code: `
<Headline text="With *Markdown* use" sub="This is a subheadline, displayed **below the headline**" />
`,
},
{
group: "Teaser Card",
name: "With Image",
code: `
<TeaserCard
image="https://picsum.photos/seed/kdscontentbox/500/300"
headline="TeaserCard headline"
text="TeaserCard text content that can be quite a bit longer, and use **Markdown**"
target="#"
inverted="false"
/>
`,
},
{
group: "Teaser Card",
name: "With Image Inverted",
code: `
<TeaserCard
image="https://picsum.photos/seed/kdscontentbox/500/300"
headline="TeaserCard headline"
text="TeaserCard text content that can be quite a bit longer, and use **Markdown**"
target="#"
inverted="true"
/>
`,
},
{
group: "Section",
name: "With TeaserCards",
code: `
<Section mode="tile" headline="Section headline">
<TeaserCard
image="https://picsum.photos/seed/kdscontentbox/500/300"
headline="TeaserCard headline"
text="TeaserCard text content that can be quite a bit longer, and use **Markdown**"
target="#"
inverted="false"
/>
<TeaserCard
image="https://picsum.photos/seed/kdscontentbox/500/300"
headline="TeaserCard headline"
text="TeaserCard text content that can be quite a bit longer, and use **Markdown**"
target="#"
inverted="false"
/>
<TeaserCard
image="https://picsum.photos/seed/kdscontentbox/500/300"
headline="TeaserCard headline"
text="TeaserCard text content that can be quite a bit longer, and use **Markdown**"
target="#"
inverted="false"
/>
</Section>
`,
},
{
group: "Section",
name: "With CTAs",
code: `
<Section mode="tile" headline="Section headline" ctas={[
{
label: "Section CTA 1",
target: "#",
},
{
label: "Section CTA 2",
target: "#",
},
{
label: "Section CTA 3",
target: "#",
}
]}>
<TeaserCard
image="https://picsum.photos/seed/kdscontentbox/500/300"
headline="TeaserCard headline"
text="TeaserCard text content that can be quite a bit longer, and use **Markdown**"
target="#"
inverted="false"
/>
<TeaserCard
image="https://picsum.photos/seed/kdscontentbox/500/300"
headline="TeaserCard headline"
text="TeaserCard text content that can be quite a bit longer, and use **Markdown**"
target="#"
inverted="false"
/>
<TeaserCard
image="https://picsum.photos/seed/kdscontentbox/500/300"
headline="TeaserCard headline"
text="TeaserCard text content that can be quite a bit longer, and use **Markdown**"
target="#"
inverted="false"
/>
</Section>
`,
},
{
group: "Recipe",
name: "Article Teaser",
code: `
<Section
headline="Read articles about kickstartDS"
background="accent"
ctas={[{
label: "All articles",
target: "https://www.kickstartDS.com/blog"
}, {
label: "Open Source announcement",
target: "https://www.kickstartds.com/blog/kickstartds-is-open-source-now-lets-start-to-democratize-design-systems-today/"
}]}
>
<TeaserCard
headline="Release Spotlight: Semantic Token"
text="#tldr: Design Token are all the rage these days. In almost every channel from the Design System space, you can feel a crispy white noise around the broad topic of Design Token..."
target="https://www.kickstartds.com/blog/release-spotlight-semantic-token/"
image="https://www.kickstartds.com/static/95c85bb44b1a2efbe2b33e75b99754bd/Blog-Post_Release-Notes-01-1.png"
inverted={false}
/>
<TeaserCard
headline="Release Spotlight: Container Queries"
text="#tldr: Container Queries are another new feature coming with the Open Source release of kickstartDS. It's a proposed feature for CSS that allows the styling of elements to be..."
target="https://www.kickstartds.com/blog/release-spotlight-container-queries/"
image="https://www.kickstartds.com/static/3d484cc97ab1a34975e6abaa6dc28fed/Blog-Post_Release-Spotlight-02.png"
inverted={false}
/>
<TeaserCard
headline="Release Spotlight: Documentation & Starter"
text="#tldr: Container Queries are another new feature coming with the Open Source release of kickstartDS. It's a proposed feature for CSS that allows the styling of elements to be..."
target="https://www.kickstartds.com/blog/release-spotlight-container-queries/"
image="https://www.kickstartds.com/static/3d484cc97ab1a34975e6abaa6dc28fed/Blog-Post_Release-Spotlight-02.png"
inverted={false}
/>
</Section>
`
}
];