Skip to content

Commit 67c24c2

Browse files
committed
docs: loader
1 parent d77c192 commit 67c24c2

File tree

1 file changed

+13
-50
lines changed

1 file changed

+13
-50
lines changed

apps/docs/content/_components/loadercircular.md

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -14,81 +14,44 @@
1414

1515
<Showcase showcase-name="LoaderCircular/LoaderCircularSizes" style="min-height:320px">
1616

17-
::vue-only
18-
<<<../../../preview/nuxt/pages/showcases/LoaderCircular/LoaderCircularSizes.vue
19-
::
20-
::react-only
21-
<<<../../../preview/next/pages/showcases/LoaderCircular/LoaderCircularSizes.tsx
22-
::
23-
::qwik-only
2417
<<<../../../website/src/routes/showcases/LoaderCircular/LoaderCircularSizes/index.tsx
25-
::
2618

2719
</Showcase>
2820

2921
### Customizing colors
3022

31-
By default, `SfLoaderCircular` uses `primary-700` as the animated shape color (customizable by setting text color) and `neutral-300` for the background ring. You can change these values in your [Tailwind configuration](https://tailwindcss.com/docs/configuration#theme) or override them for a single element using the [`important modifier`](https://tailwindcss.com/docs/configuration#important-modifier).
23+
By default, `SfLoaderCircular` uses `primary-700` as the animated shape color (customizable by setting text color) and `neutral-300` for the background ring.
24+
25+
<!-- You can change these values in your [Tailwind configuration](https://tailwindcss.com/docs/configuration#theme) or override them for a single element using the [`important modifier`](https://tailwindcss.com/docs/configuration#important-modifier). -->
3226

27+
<!--
3328
::tip
3429
Learn more about [overriding default styles](/customization/overriding-default-styles) in Storefront UI.
3530
::
31+
-->
3632

3733
<Showcase showcase-name="LoaderCircular/LoaderCircularColors">
3834

39-
::vue-only
40-
<<<../../../preview/nuxt/pages/showcases/LoaderCircular/LoaderCircularColors.vue
41-
::
42-
::react-only
43-
<<<../../../preview/next/pages/showcases/LoaderCircular/LoaderCircularColors.tsx
44-
::
45-
::qwik-only
4635
<<<../../../website/src/routes/showcases/LoaderCircular/LoaderCircularColors/index.tsx
47-
::
4836

4937
</Showcase>
5038

51-
## Accessibility notes
39+
<!-- ## Accessibility notes
5240
5341
`SfLoaderCircular` uses `aria-live="polite"` to allow screen readers to read the loading status. This can be overriden by passing your own `aria-live` value to the component.
5442
55-
It's important to properly set `aria-label` for screen readers to read proper information while target component is loading. Default value is set to `loading`.
43+
It's important to properly set `aria-label` for screen readers to read proper information while target component is loading. Default value is set to `loading`. -->
5644

5745
## Playground
5846

59-
<Generate />
47+
<Generate class="playground"/>
6048

6149
#tab-2
6250

6351
## Props
6452

65-
::vue-only
66-
| Prop name | Type | Default value | Possible values |
67-
|-----------------------|----------------------------|-------------------------------|--------------------------------------|
68-
| `size` | `SfLoaderSize` | `'base'` | `'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` |
69-
| `ariaLabel` | `string` | `'loading'` | |
70-
::
71-
::react-only
72-
| Prop name | Type | Default value | Possible values |
73-
|-----------------------|----------------------------|-------------------------------|--------------------------------------|
74-
| `size` | `SfLoaderSize` | `'base'` | `'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` |
75-
| `ariaLabel` | `string` | `'loading'` | |
76-
| `className` | `string` | | | |
77-
::
78-
::qwik-only
79-
| Prop name | Type | Default value | Possible values |
80-
|-----------------------|----------------------------|-------------------------------|--------------------------------------|
81-
| `size` | `SfLoaderSize` | `'base'` | `'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` |
82-
| `ariaLabel` | `string` | `'loading'` | |
83-
| `className` | `string` | | | |
84-
::
85-
86-
#tab-3
87-
88-
::vue-only
89-
<<<../../../../packages/sfui/frameworks/vue/components/SfLoaderCircular/SfLoaderCircular.vue
90-
::
91-
::react-only
92-
<<<../../../../packages/sfui/frameworks/react/components/SfLoaderCircular/SfLoaderCircular.tsx
93-
::
94-
::
53+
| Prop name | Type | Default value | Possible values |
54+
| ----------- | -------------- | ------------- | ------------------------------------------------------------ |
55+
| `class` | `string` | | |
56+
| `size` | `SfLoaderSize` | `'base'` | `'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` |
57+
| `ariaLabel` | `string` | `'loading'` | |

0 commit comments

Comments
 (0)