@synergy-design-system/mcp 1.38.4 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/metadata/checksum.txt +1 -1
- package/metadata/packages/components/components/syn-button/component.custom.styles.ts +53 -28
- package/metadata/packages/components/components/syn-menu-item/component.custom.styles.ts +27 -12
- package/metadata/packages/components/components/syn-optgroup/component.styles.ts +3 -1
- package/metadata/packages/components/components/syn-option/component.custom.styles.ts +11 -6
- package/metadata/packages/components/migration/migration-synergy-v3.md +0 -5
- package/metadata/packages/components/static/CHANGELOG.md +26 -1
- package/metadata/packages/tokens/CHANGELOG.md +9 -0
- package/metadata/packages/tokens/dark.css +42 -0
- package/metadata/packages/tokens/index.js +210 -0
- package/metadata/packages/tokens/light.css +42 -0
- package/metadata/packages/tokens/sick2018_dark.css +42 -0
- package/metadata/packages/tokens/sick2018_light.css +42 -0
- package/metadata/packages/tokens/sick2025_dark.css +77 -35
- package/metadata/packages/tokens/sick2025_light.css +79 -37
- package/metadata/static/components/syn-button/docs.md +371 -301
- package/metadata/static/migration/index.md +1 -0
- package/package.json +5 -5
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Buttons represent actions that are available to the user.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<syn-button title="" variant="outline" size="medium">
|
|
6
|
+
<syn-button title="" variant="outline" size="medium"> Default </syn-button>
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
---
|
|
@@ -13,14 +13,11 @@ Buttons represent actions that are available to the user.
|
|
|
13
13
|
Use the variant attribute to set the button’s variant. Variants can be Filled, Outline and Text Buttons. Use the outline attribute to draw outlined buttons with transparent backgrounds. Use the text variant to create text buttons that share the same size as regular buttons but don’t have backgrounds or borders.
|
|
14
14
|
|
|
15
15
|
```html
|
|
16
|
-
<
|
|
17
|
-
<syn-button variant="
|
|
18
|
-
<syn-button variant="
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
margin: 0.2rem;
|
|
22
|
-
}
|
|
23
|
-
</style>
|
|
16
|
+
<div style="display: flex; flex-direction: row; gap: var(--syn-spacing-large)">
|
|
17
|
+
<syn-button variant="filled" title="" size="medium">Filled</syn-button>
|
|
18
|
+
<syn-button variant="outline" title="" size="medium">Outline</syn-button>
|
|
19
|
+
<syn-button variant="text" title="" size="medium">Text</syn-button>
|
|
20
|
+
</div>
|
|
24
21
|
```
|
|
25
22
|
|
|
26
23
|
---
|
|
@@ -30,14 +27,18 @@ Use the variant attribute to set the button’s variant. Variants can be Filled,
|
|
|
30
27
|
Use the size attribute to change a button’s size.
|
|
31
28
|
|
|
32
29
|
```html
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
<div
|
|
31
|
+
style="
|
|
32
|
+
align-items: anchor-center;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
gap: var(--syn-spacing-large);
|
|
36
|
+
"
|
|
37
|
+
>
|
|
38
|
+
<syn-button size="small" title="" variant="outline">Small</syn-button>
|
|
39
|
+
<syn-button size="medium" title="" variant="outline">Medium</syn-button>
|
|
40
|
+
<syn-button size="large" title="" variant="outline">Large</syn-button>
|
|
41
|
+
</div>
|
|
41
42
|
```
|
|
42
43
|
|
|
43
44
|
---
|
|
@@ -59,38 +60,39 @@ The focus event gives the user feedback that the Button has been focused by the
|
|
|
59
60
|
It’s often helpful to have a button that works like a link. This is possible by setting the href attribute, which will make the component render an under the hood. This gives you all the default link behavior the browser provides (e.g. CMD/CTRL/SHIFT + CLICK) and exposes the target and download attributes.
|
|
60
61
|
|
|
61
62
|
```html
|
|
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
|
-
|
|
63
|
+
<div style="display: flex; flex-direction: row; gap: var(--syn-spacing-large)">
|
|
64
|
+
<syn-button
|
|
65
|
+
href="https://example.com/"
|
|
66
|
+
title=""
|
|
67
|
+
variant="outline"
|
|
68
|
+
size="medium"
|
|
69
|
+
>Link</syn-button
|
|
70
|
+
>
|
|
71
|
+
<syn-button
|
|
72
|
+
href="https://example.com/"
|
|
73
|
+
target="_blank"
|
|
74
|
+
title=""
|
|
75
|
+
variant="outline"
|
|
76
|
+
size="medium"
|
|
77
|
+
>New Window</syn-button
|
|
78
|
+
>
|
|
79
|
+
<syn-button
|
|
80
|
+
href="/assets/images/wordmark.svg"
|
|
81
|
+
download="synergy.svg"
|
|
82
|
+
title=""
|
|
83
|
+
variant="outline"
|
|
84
|
+
size="medium"
|
|
85
|
+
>Download</syn-button
|
|
86
|
+
>
|
|
87
|
+
<syn-button
|
|
88
|
+
href="https://example.com/"
|
|
89
|
+
disabled=""
|
|
90
|
+
title=""
|
|
91
|
+
variant="outline"
|
|
92
|
+
size="medium"
|
|
93
|
+
>Disabled</syn-button
|
|
94
|
+
>
|
|
95
|
+
</div>
|
|
94
96
|
```
|
|
95
97
|
|
|
96
98
|
---
|
|
@@ -100,23 +102,19 @@ It’s often helpful to have a button that works like a link. This is possible b
|
|
|
100
102
|
As expected, buttons can be given a custom width by setting the width attribute. This is useful for making buttons span the full width of their container on smaller screens.
|
|
101
103
|
|
|
102
104
|
```html
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
style="width: 100%; margin-bottom: 1rem"
|
|
106
|
-
title=""
|
|
107
|
-
variant="outline"
|
|
108
|
-
>Small</syn-button
|
|
109
|
-
>
|
|
110
|
-
<syn-button
|
|
111
|
-
size="medium"
|
|
112
|
-
style="width: 100%; margin-bottom: 1rem"
|
|
113
|
-
title=""
|
|
114
|
-
variant="outline"
|
|
115
|
-
>Medium</syn-button
|
|
116
|
-
>
|
|
117
|
-
<syn-button size="large" style="width: 100%" title="" variant="outline"
|
|
118
|
-
>Large</syn-button
|
|
105
|
+
<div
|
|
106
|
+
style="display: flex; flex-direction: column; gap: var(--syn-spacing-large)"
|
|
119
107
|
>
|
|
108
|
+
<syn-button size="small" style="width: 100%" title="" variant="outline"
|
|
109
|
+
>Small</syn-button
|
|
110
|
+
>
|
|
111
|
+
<syn-button size="medium" style="width: 100%" title="" variant="outline"
|
|
112
|
+
>Medium</syn-button
|
|
113
|
+
>
|
|
114
|
+
<syn-button size="large" style="width: 100%" title="" variant="outline"
|
|
115
|
+
>Large</syn-button
|
|
116
|
+
>
|
|
117
|
+
</div>
|
|
120
118
|
```
|
|
121
119
|
|
|
122
120
|
---
|
|
@@ -126,98 +124,116 @@ As expected, buttons can be given a custom width by setting the width attribute.
|
|
|
126
124
|
Insert just a single icon to use the same button style.
|
|
127
125
|
|
|
128
126
|
```html
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
<syn-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<syn-
|
|
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
|
-
|
|
127
|
+
<div
|
|
128
|
+
style="
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
gap: var(--syn-spacing-large);
|
|
132
|
+
margin-bottom: var(--syn-spacing-small);
|
|
133
|
+
"
|
|
134
|
+
>
|
|
135
|
+
<syn-button size="small" variant="filled" title="">
|
|
136
|
+
<syn-icon
|
|
137
|
+
name="settings"
|
|
138
|
+
label="Settings"
|
|
139
|
+
role="img"
|
|
140
|
+
aria-label="Settings"
|
|
141
|
+
library="default"
|
|
142
|
+
></syn-icon>
|
|
143
|
+
</syn-button>
|
|
144
|
+
<syn-button size="small" title="" variant="outline">
|
|
145
|
+
<syn-icon
|
|
146
|
+
name="settings"
|
|
147
|
+
label="Settings"
|
|
148
|
+
role="img"
|
|
149
|
+
aria-label="Settings"
|
|
150
|
+
library="default"
|
|
151
|
+
></syn-icon>
|
|
152
|
+
</syn-button>
|
|
153
|
+
<syn-button size="small" variant="text" title="">
|
|
154
|
+
<syn-icon
|
|
155
|
+
name="settings"
|
|
156
|
+
label="Settings"
|
|
157
|
+
role="img"
|
|
158
|
+
aria-label="Settings"
|
|
159
|
+
library="default"
|
|
160
|
+
></syn-icon>
|
|
161
|
+
</syn-button>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<div
|
|
165
|
+
style="
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: row;
|
|
168
|
+
gap: var(--syn-spacing-large);
|
|
169
|
+
margin-bottom: var(--syn-spacing-small);
|
|
170
|
+
"
|
|
171
|
+
>
|
|
172
|
+
<syn-button size="medium" variant="filled" title="">
|
|
173
|
+
<syn-icon
|
|
174
|
+
name="settings"
|
|
175
|
+
label="Settings"
|
|
176
|
+
role="img"
|
|
177
|
+
aria-label="Settings"
|
|
178
|
+
library="default"
|
|
179
|
+
></syn-icon>
|
|
180
|
+
</syn-button>
|
|
181
|
+
<syn-button size="medium" title="" variant="outline">
|
|
182
|
+
<syn-icon
|
|
183
|
+
name="settings"
|
|
184
|
+
label="Settings"
|
|
185
|
+
role="img"
|
|
186
|
+
aria-label="Settings"
|
|
187
|
+
library="default"
|
|
188
|
+
></syn-icon>
|
|
189
|
+
</syn-button>
|
|
190
|
+
<syn-button size="medium" variant="text" title="">
|
|
191
|
+
<syn-icon
|
|
192
|
+
name="settings"
|
|
193
|
+
label="Settings"
|
|
194
|
+
role="img"
|
|
195
|
+
aria-label="Settings"
|
|
196
|
+
library="default"
|
|
197
|
+
></syn-icon>
|
|
198
|
+
</syn-button>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
<div
|
|
202
|
+
style="
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: row;
|
|
205
|
+
gap: var(--syn-spacing-large);
|
|
206
|
+
margin-bottom: var(--syn-spacing-small);
|
|
207
|
+
"
|
|
208
|
+
>
|
|
209
|
+
<syn-button size="large" variant="filled" title="">
|
|
210
|
+
<syn-icon
|
|
211
|
+
name="settings"
|
|
212
|
+
label="Settings"
|
|
213
|
+
role="img"
|
|
214
|
+
aria-label="Settings"
|
|
215
|
+
library="default"
|
|
216
|
+
></syn-icon>
|
|
217
|
+
</syn-button>
|
|
218
|
+
<syn-button size="large" title="" variant="outline">
|
|
219
|
+
<syn-icon
|
|
220
|
+
name="settings"
|
|
221
|
+
label="Settings"
|
|
222
|
+
role="img"
|
|
223
|
+
aria-label="Settings"
|
|
224
|
+
library="default"
|
|
225
|
+
></syn-icon>
|
|
226
|
+
</syn-button>
|
|
227
|
+
<syn-button size="large" variant="text" title="">
|
|
228
|
+
<syn-icon
|
|
229
|
+
name="settings"
|
|
230
|
+
label="Settings"
|
|
231
|
+
role="img"
|
|
232
|
+
aria-label="Settings"
|
|
233
|
+
library="default"
|
|
234
|
+
></syn-icon>
|
|
235
|
+
</syn-button>
|
|
236
|
+
</div>
|
|
221
237
|
```
|
|
222
238
|
|
|
223
239
|
---
|
|
@@ -227,122 +243,129 @@ Insert just a single icon to use the same button style.
|
|
|
227
243
|
Use the prefix and suffix slots to add icons.
|
|
228
244
|
|
|
229
245
|
```html
|
|
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
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
<syn-button size="large" title="" variant="outline">
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
</syn-button>
|
|
325
|
-
|
|
326
|
-
<syn-button size="large" title="" variant="outline">
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
246
|
+
<div
|
|
247
|
+
style="display: flex; flex-direction: column; gap: var(--syn-spacing-large)"
|
|
248
|
+
>
|
|
249
|
+
<div
|
|
250
|
+
style="display: flex; flex-direction: row; gap: var(--syn-spacing-large)"
|
|
251
|
+
>
|
|
252
|
+
<syn-button size="small" title="" variant="outline">
|
|
253
|
+
<syn-icon
|
|
254
|
+
slot="prefix"
|
|
255
|
+
name="settings"
|
|
256
|
+
aria-hidden="true"
|
|
257
|
+
library="default"
|
|
258
|
+
></syn-icon>
|
|
259
|
+
Settings
|
|
260
|
+
</syn-button>
|
|
261
|
+
|
|
262
|
+
<syn-button size="small" title="" variant="outline">
|
|
263
|
+
<syn-icon
|
|
264
|
+
slot="suffix"
|
|
265
|
+
name="refresh"
|
|
266
|
+
aria-hidden="true"
|
|
267
|
+
library="default"
|
|
268
|
+
></syn-icon>
|
|
269
|
+
Refresh
|
|
270
|
+
</syn-button>
|
|
271
|
+
|
|
272
|
+
<syn-button size="small" title="" variant="outline">
|
|
273
|
+
<syn-icon
|
|
274
|
+
slot="prefix"
|
|
275
|
+
name="link"
|
|
276
|
+
aria-hidden="true"
|
|
277
|
+
library="default"
|
|
278
|
+
></syn-icon>
|
|
279
|
+
<syn-icon
|
|
280
|
+
slot="suffix"
|
|
281
|
+
name="launch"
|
|
282
|
+
aria-hidden="true"
|
|
283
|
+
library="default"
|
|
284
|
+
></syn-icon>
|
|
285
|
+
Open
|
|
286
|
+
</syn-button>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<div
|
|
290
|
+
style="display: flex; flex-direction: row; gap: var(--syn-spacing-large)"
|
|
291
|
+
>
|
|
292
|
+
<syn-button title="" variant="outline" size="medium">
|
|
293
|
+
<syn-icon
|
|
294
|
+
slot="prefix"
|
|
295
|
+
name="settings"
|
|
296
|
+
aria-hidden="true"
|
|
297
|
+
library="default"
|
|
298
|
+
></syn-icon>
|
|
299
|
+
Settings
|
|
300
|
+
</syn-button>
|
|
301
|
+
|
|
302
|
+
<syn-button title="" variant="outline" size="medium">
|
|
303
|
+
<syn-icon
|
|
304
|
+
slot="suffix"
|
|
305
|
+
name="refresh"
|
|
306
|
+
aria-hidden="true"
|
|
307
|
+
library="default"
|
|
308
|
+
></syn-icon>
|
|
309
|
+
Refresh
|
|
310
|
+
</syn-button>
|
|
311
|
+
|
|
312
|
+
<syn-button title="" variant="outline" size="medium">
|
|
313
|
+
<syn-icon
|
|
314
|
+
slot="prefix"
|
|
315
|
+
name="link"
|
|
316
|
+
aria-hidden="true"
|
|
317
|
+
library="default"
|
|
318
|
+
></syn-icon>
|
|
319
|
+
<syn-icon
|
|
320
|
+
slot="suffix"
|
|
321
|
+
name="launch"
|
|
322
|
+
aria-hidden="true"
|
|
323
|
+
library="default"
|
|
324
|
+
></syn-icon>
|
|
325
|
+
Open
|
|
326
|
+
</syn-button>
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
<div
|
|
330
|
+
style="display: flex; flex-direction: row; gap: var(--syn-spacing-large)"
|
|
331
|
+
>
|
|
332
|
+
<syn-button size="large" title="" variant="outline">
|
|
333
|
+
<syn-icon
|
|
334
|
+
slot="prefix"
|
|
335
|
+
name="settings"
|
|
336
|
+
aria-hidden="true"
|
|
337
|
+
library="default"
|
|
338
|
+
></syn-icon>
|
|
339
|
+
Settings
|
|
340
|
+
</syn-button>
|
|
341
|
+
|
|
342
|
+
<syn-button size="large" title="" variant="outline">
|
|
343
|
+
<syn-icon
|
|
344
|
+
slot="suffix"
|
|
345
|
+
name="refresh"
|
|
346
|
+
aria-hidden="true"
|
|
347
|
+
library="default"
|
|
348
|
+
></syn-icon>
|
|
349
|
+
Refresh
|
|
350
|
+
</syn-button>
|
|
351
|
+
|
|
352
|
+
<syn-button size="large" title="" variant="outline">
|
|
353
|
+
<syn-icon
|
|
354
|
+
slot="prefix"
|
|
355
|
+
name="link"
|
|
356
|
+
aria-hidden="true"
|
|
357
|
+
library="default"
|
|
358
|
+
></syn-icon>
|
|
359
|
+
<syn-icon
|
|
360
|
+
slot="suffix"
|
|
361
|
+
name="launch"
|
|
362
|
+
aria-hidden="true"
|
|
363
|
+
library="default"
|
|
364
|
+
></syn-icon>
|
|
365
|
+
Open
|
|
366
|
+
</syn-button>
|
|
367
|
+
</div>
|
|
368
|
+
</div>
|
|
346
369
|
```
|
|
347
370
|
|
|
348
371
|
---
|
|
@@ -352,16 +375,24 @@ Use the prefix and suffix slots to add icons.
|
|
|
352
375
|
Use the caret attribute to add a dropdown indicator when a button will trigger a dropdown, menu, or popover.
|
|
353
376
|
|
|
354
377
|
```html
|
|
355
|
-
<
|
|
356
|
-
|
|
357
|
-
|
|
378
|
+
<div
|
|
379
|
+
style="
|
|
380
|
+
align-items: anchor-center;
|
|
381
|
+
display: flex;
|
|
382
|
+
flex-direction: row;
|
|
383
|
+
gap: var(--syn-spacing-large);
|
|
384
|
+
"
|
|
358
385
|
>
|
|
359
|
-
<syn-button size="
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
386
|
+
<syn-button size="small" caret="" title="" variant="outline"
|
|
387
|
+
>Small</syn-button
|
|
388
|
+
>
|
|
389
|
+
<syn-button size="medium" caret="" title="" variant="outline"
|
|
390
|
+
>Medium</syn-button
|
|
391
|
+
>
|
|
392
|
+
<syn-button size="large" caret="" title="" variant="outline"
|
|
393
|
+
>Large</syn-button
|
|
394
|
+
>
|
|
395
|
+
</div>
|
|
365
396
|
```
|
|
366
397
|
|
|
367
398
|
---
|
|
@@ -371,18 +402,15 @@ Use the caret attribute to add a dropdown indicator when a button will trigger a
|
|
|
371
402
|
Use the loading attribute to make a button busy. The width will remain the same as before, preventing adjacent elements from moving around. Clicks will be suppressed until the loading state is removed.
|
|
372
403
|
|
|
373
404
|
```html
|
|
374
|
-
<
|
|
375
|
-
|
|
376
|
-
>
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
>
|
|
380
|
-
|
|
381
|
-
<
|
|
382
|
-
|
|
383
|
-
margin: 0.2rem;
|
|
384
|
-
}
|
|
385
|
-
</style>
|
|
405
|
+
<div style="display: flex; flex-direction: row; gap: var(--syn-spacing-large)">
|
|
406
|
+
<syn-button variant="filled" loading="" title="" size="medium"
|
|
407
|
+
>Filled</syn-button
|
|
408
|
+
>
|
|
409
|
+
<syn-button variant="outline" loading="" title="" size="medium"
|
|
410
|
+
>Outline</syn-button
|
|
411
|
+
>
|
|
412
|
+
<syn-button variant="text" loading="" title="" size="medium">Text</syn-button>
|
|
413
|
+
</div>
|
|
386
414
|
```
|
|
387
415
|
|
|
388
416
|
---
|
|
@@ -392,11 +420,53 @@ Use the loading attribute to make a button busy. The width will remain the same
|
|
|
392
420
|
Use the disabled attribute to disable a button.
|
|
393
421
|
|
|
394
422
|
```html
|
|
395
|
-
<
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
423
|
+
<div style="display: flex; flex-direction: row; gap: var(--syn-spacing-large)">
|
|
424
|
+
<syn-button variant="filled" disabled="" title="" size="medium">
|
|
425
|
+
<syn-icon
|
|
426
|
+
name="wallpaper"
|
|
427
|
+
slot="prefix"
|
|
428
|
+
aria-hidden="true"
|
|
429
|
+
library="default"
|
|
430
|
+
></syn-icon>
|
|
431
|
+
Button
|
|
432
|
+
<syn-icon
|
|
433
|
+
name="wallpaper"
|
|
434
|
+
slot="suffix"
|
|
435
|
+
aria-hidden="true"
|
|
436
|
+
library="default"
|
|
437
|
+
></syn-icon>
|
|
438
|
+
</syn-button>
|
|
439
|
+
|
|
440
|
+
<syn-button variant="outline" disabled="" title="" size="medium">
|
|
441
|
+
<syn-icon
|
|
442
|
+
name="wallpaper"
|
|
443
|
+
slot="prefix"
|
|
444
|
+
aria-hidden="true"
|
|
445
|
+
library="default"
|
|
446
|
+
></syn-icon>
|
|
447
|
+
Button
|
|
448
|
+
<syn-icon
|
|
449
|
+
name="wallpaper"
|
|
450
|
+
slot="suffix"
|
|
451
|
+
aria-hidden="true"
|
|
452
|
+
library="default"
|
|
453
|
+
></syn-icon>
|
|
454
|
+
</syn-button>
|
|
455
|
+
|
|
456
|
+
<syn-button variant="text" disabled="" title="" size="medium">
|
|
457
|
+
<syn-icon
|
|
458
|
+
name="wallpaper"
|
|
459
|
+
slot="prefix"
|
|
460
|
+
aria-hidden="true"
|
|
461
|
+
library="default"
|
|
462
|
+
></syn-icon>
|
|
463
|
+
Button
|
|
464
|
+
<syn-icon
|
|
465
|
+
name="wallpaper"
|
|
466
|
+
slot="suffix"
|
|
467
|
+
aria-hidden="true"
|
|
468
|
+
library="default"
|
|
469
|
+
></syn-icon>
|
|
470
|
+
</syn-button>
|
|
471
|
+
</div>
|
|
402
472
|
```
|