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
{{ message }}
Repository navigation
Commit 022f618
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/demo/src/content/components/spinner.mdx
+62-43Lines changed: 62 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,50 +5,69 @@ heading: "Spinner"
5
5
6
6
import { Spinner } from"@eqtylab/equality";
7
7
8
-
## Size Variants
8
+
## Overview
9
9
10
-
### Extra Small (xs)
10
+
The Spinner component provides a visual loading indicator to communicate that content or an action is in progress. Use it when fetching data, submitting forms, or during any asynchronous operation where the user should wait.
11
11
12
-
<Spinnerclient:only="react"size="xs" />
12
+
## Usage
13
13
14
-
### Small (sm)
14
+
Importthecomponent:
15
15
16
-
<Spinnerclient:only="react"size="sm" />
17
-
18
-
### Medium (md) - Default
19
-
20
-
<Spinnerclient:only="react"size="md" />
21
-
22
-
### Large (lg)
23
-
24
-
<Spinnerclient:only="react"size="lg" />
25
-
26
-
### Extra Large (xl)
27
-
28
-
<Spinnerclient:only="react"size="xl" />
29
-
30
-
## Color Variants
31
-
32
-
This component supports color variants using either the brand primary color or status options. Available variants are `primary` (brand primary color), `success`, `danger`, and `warning`. Use these to visually distinguish loading spinners according to your design needs.
33
-
34
-
The special `neutral` variant adapts the spinner to use the primary text color, automatically switching between light and dark themes according to your app's current appearance mode.
35
-
36
-
### Neutral
37
-
38
-
<Spinnerclient:only="react"variant="neutral" />
39
-
40
-
### Primary
41
-
42
-
<Spinnerclient:only="react"variant="primary" />
43
-
44
-
### Success
45
-
46
-
<Spinnerclient:only="react"variant="success" />
47
-
48
-
### Danger
49
-
50
-
<Spinnerclient:only="react"variant="danger" />
51
-
52
-
### Warning
53
-
54
-
<Spinnerclient:only="react"variant="warning" />
16
+
```ts
17
+
import { Spinner } from"@eqtylab/equality";
18
+
```
19
+
20
+
Basic usage with default properties:
21
+
22
+
```tsx
23
+
<Spinner />
24
+
```
25
+
26
+
## Variants
27
+
28
+
### Size
29
+
30
+
The Spinner supports five size variants to fit different contexts, from inline indicators to full-page loading states.
0 commit comments