You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summarystyle={{fontWeight: 'bold'}}><ChevronRightsize="S" /> Show CSS</summary>
214
+
215
+
```css
216
+
@keyframesload {
217
+
99% {
218
+
visibility: hidden;
219
+
}
220
+
221
+
100% {
222
+
visibility: visible;
223
+
}
224
+
}
225
+
226
+
@keyframeshidden {
227
+
99% {
228
+
visibility: visible;
229
+
}
230
+
231
+
100% {
232
+
visibility: hidden;
233
+
}
234
+
}
235
+
236
+
.react-aria-Button {
237
+
position: relative;
238
+
}
239
+
240
+
.spinner {
241
+
position: absolute;
242
+
top: 50%;
243
+
left: 50%;
244
+
transform: translate(-50%, -50%);
245
+
visibility: hidden;
246
+
}
247
+
.spinner-pending {
248
+
animation: 1s load;
249
+
animation-fill-mode: forwards;
250
+
}
251
+
252
+
.pending {
253
+
animation: 1shidden;
254
+
animation-fill-mode: forwards;
255
+
visibility: visible;
256
+
}
257
+
258
+
.loader {
259
+
width: 20px;
260
+
height: 20px;
261
+
border: 3pxsolidvar(--background-color);
262
+
border-radius: 50%;
263
+
display: inline-block;
264
+
position: relative;
265
+
box-sizing: border-box;
266
+
animation: rotation 1slinearinfinite;
267
+
}
268
+
.loader::after {
269
+
content: '';
270
+
box-sizing: border-box;
271
+
position: absolute;
272
+
left: 50%;
273
+
top: 50%;
274
+
transform: translate(-50%, -50%);
275
+
width: 20px;
276
+
height: 20px;
277
+
border-radius: 50%;
278
+
border: 3pxsolid;
279
+
border-color: var(--purple-400) transparent;
280
+
}
281
+
282
+
@keyframesrotation {
283
+
0% {
284
+
transform: rotate(0deg);
285
+
}
286
+
100% {
287
+
transform: rotate(360deg);
288
+
}
289
+
}
290
+
```
291
+
292
+
</details>
293
+
162
294
## Link buttons
163
295
164
296
The `Button` component always represents a button semantically. To create a link that visually looks like a button, use the [Link](Link.html) component instead. You can reuse the same styles you apply to the `Button` component on the `Link`.
0 commit comments