|
14 | 14 |
|
15 | 15 | <Showcase showcase-name="LoaderLinear/LoaderLinearSizes" style="min-height:300px"> |
16 | 16 |
|
17 | | -::vue-only |
18 | | -<<<../../../preview/nuxt/pages/showcases/LoaderLinear/LoaderLinearSizes.vue |
19 | | -:: |
20 | | -::react-only |
21 | | -<<<../../../preview/next/pages/showcases/LoaderLinear/LoaderLinearSizes.tsx |
22 | | -:: |
23 | | -::qwik-only |
24 | 17 | <<<../../../website/src/routes/showcases/LoaderLinear/LoaderLinearSizes/index.tsx |
25 | | -:: |
26 | 18 |
|
27 | 19 | </Showcase> |
28 | 20 |
|
29 | 21 | ### Customizing colors |
30 | 22 |
|
31 | | -By default, `SfLoaderLinear` uses `primary-700` as the color of the bar (customizable by setting text color) and `neutral-300` as its background. You can change these values in your [Tailwind configuration](https://tailwindcss.com/docs/configuration#theme) or override them for a single element using [`important modifier`](https://tailwindcss.com/docs/configuration#important-modifier). |
| 23 | +By default, `SfLoaderLinear` uses `primary-700` as the color of the bar (customizable by setting text color) and `neutral-300` as its background. |
| 24 | + |
| 25 | +<!-- |
| 26 | +You can change these values in your [Tailwind configuration](https://tailwindcss.com/docs/configuration#theme) or override them for a single element using [`important modifier`](https://tailwindcss.com/docs/configuration#important-modifier). |
| 27 | + --> |
32 | 28 |
|
| 29 | +<!-- |
33 | 30 | ::tip |
34 | 31 | Learn more about [overriding default styles](/customization/overriding-default-styles) in Storefront UI. |
35 | 32 | :: |
| 33 | + --> |
36 | 34 |
|
37 | 35 | <Showcase showcase-name="LoaderLinear/LoaderLinearColors"> |
38 | 36 |
|
39 | | -::vue-only |
40 | | -<<<../../../preview/nuxt/pages/showcases/LoaderLinear/LoaderLinearColors.vue |
41 | | -:: |
42 | | -::react-only |
43 | | -<<<../../../preview/next/pages/showcases/LoaderLinear/LoaderLinearColors.tsx |
44 | | -:: |
45 | | -::qwik-only |
46 | 37 | <<<../../../website/src/routes/showcases/LoaderLinear/LoaderLinearColors/index.tsx |
47 | | -:: |
48 | 38 |
|
49 | 39 | </Showcase> |
50 | 40 |
|
| 41 | +<!-- |
51 | 42 | ## Accessibility notes |
52 | 43 |
|
53 | 44 | `SfLoaderLinear` 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. |
54 | 45 |
|
55 | 46 | 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`. |
| 47 | + --> |
56 | 48 |
|
57 | 49 | ## Playground |
58 | 50 |
|
59 | | -<Generate /> |
| 51 | +<Generate class="playground" /> |
60 | 52 |
|
61 | 53 | #tab-2 |
62 | 54 |
|
63 | 55 | ## Props |
64 | 56 |
|
65 | | -::vue-only |
66 | | -| Prop name | Type | Default value | Possible values | |
67 | | -|-----------------------|----------------------------|-------------------------------|--------------------------------------| |
68 | | -| `size` | `SfLoaderLinearSize` | `SfLoaderSize` | `'base'` | `'minimal'`,`'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` | `SfLoaderLinearSize` | `SfLoaderSize` | `'base'` | `'minimal'`,`'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` | `SfLoaderLinearSize` | `SfLoaderSize` | `'base'` | `'minimal'`,`'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` | |
82 | | -| `ariaLabel` | `string` | `'loading'` | | |
83 | | -| `className` | `string` | | | | |
84 | | -:: |
85 | | -#tab-3 |
86 | | -::vue-only |
87 | | -<<<../../../../packages/sfui/frameworks/vue/components/SfLoaderLinear/SfLoaderLinear.vue |
88 | | -:: |
89 | | -::react-only |
90 | | -<<<../../../../packages/sfui/frameworks/react/components/SfLoaderLinear/SfLoaderLinear.tsx |
91 | | -:: |
92 | | -:: |
| 57 | +| Prop name | Type | Default value | Possible values | |
| 58 | +| ----------- | -------------------- | ------------- | ------------------------------------------------------------------------- | |
| 59 | +| `class` | `string` | | | |
| 60 | +| `size` | `SfLoaderLinearSize` | `'base'` | `'minimal'`, `'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` | |
| 61 | +| `ariaLabel` | `string` | `'loading'` | | |
0 commit comments