Skip to content

Commit 9638a0c

Browse files
committed
docs: progress linear
1 parent 00d7fd2 commit 9638a0c

File tree

1 file changed

+20
-57
lines changed

1 file changed

+20
-57
lines changed

apps/docs/content/_components/progresslinear.md

Lines changed: 20 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,27 @@
1414

1515
<Showcase showcase-name="ProgressLinear/ProgressLinearSizes" style="min-height:300px">
1616

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

2719
</Showcase>
2820

2921
### Customizing colors
3022

31-
By default, `SfProgressLinear` 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, `SfProgressLinear` 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+
-->
3228

29+
<!--
3330
::tip
3431
Learn more about [overriding default styles](/customization/overriding-default-styles) in Storefront UI.
3532
::
33+
-->
3634

3735
<Showcase showcase-name="ProgressLinear/ProgressLinearColors">
3836

39-
::vue-only
40-
<<<../../../preview/nuxt/pages/showcases/ProgressLinear/ProgressLinearColors.vue
41-
::
42-
::react-only
43-
<<<../../../preview/next/pages/showcases/ProgressLinear/ProgressLinearColors.tsx
44-
::
45-
::qwik-only
4637
<<<../../../website/src/routes/showcases/ProgressLinear/ProgressLinearColors/index.tsx
47-
::
4838

4939
</Showcase>
5040

@@ -54,60 +44,33 @@ Learn more about [overriding default styles](/customization/overriding-default-s
5444

5545
<Showcase showcase-name="ProgressLinear/ProgressLinearLabel">
5646

57-
::vue-only
58-
<<<../../../preview/nuxt/pages/showcases/ProgressLinear/ProgressLinearLabel.vue
59-
::
60-
::react-only
61-
<<<../../../preview/next/pages/showcases/ProgressLinear/ProgressLinearLabel.tsx
62-
::
63-
::qwik-only
6447
<<<../../../website/src/routes/showcases/ProgressLinear/ProgressLinearLabel/index.tsx
65-
::
6648

6749
</Showcase>
6850

51+
<!--
6952
## Accessibility notes
7053
7154
ProgressLinear uses native [`<progress>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) HTMLElement] to [allow screen readers treat it as an indicator of [progress status](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/progressbar_role).
55+
-->
7256

7357
## Playground
7458

75-
<Generate />
59+
<Generate class="playground" />
7660

7761
#tab-2
7862

7963
## Props
8064

81-
::vue-only
82-
| Prop name | Type | Default value | Possible values |
83-
|-----------------------|----------------------------|---------------|---------------------------------------- |
84-
| `value` | `number` | `0` | |
85-
| `size` | `SfProgressLinearSize | SfProgressSize` | `'base'` | `'minimal'`,`'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` |
86-
| `ariaLabel` | `string` | `'Progress linear'` | |
87-
::
88-
::react-only
89-
| Prop name | Type | Default value | Possible values |
90-
|-----------------------|----------------------------|---------------|---------------------------------------- |
91-
| `value` | `number` | `0` | |
92-
| `size` | `SfProgressLinearSize | SfProgressSize` | `'base'` | `'minimal'`,`'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` |
93-
| `ariaLabel` | `string` | `'Progress linear'` | |
94-
| `className` | `string` | | | |
95-
::
96-
::qwik-only
97-
| Prop name | Type | Default value | Possible values |
98-
|-----------------------|----------------------------|---------------|---------------------------------------- |
99-
| `value` | `number` | `0` | |
100-
| `size` | `SfProgressLinearSize | SfProgressSize` | `'base'` | `'minimal'`,`'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` |
101-
| `ariaLabel` | `string` | `'Progress linear'` | |
102-
| `className` | `string` | | | |
103-
::
65+
| Prop name | Type | Default value | Possible values |
66+
| ------------ | ---------------- | -------------------- | ------------------------------------------------------------ |
67+
| `class?` | `string` | | |
68+
| `value?` | `number` | `0` | |
69+
| `size?` | `SfProgressSize` | `'base'` | `'xs'`,`'sm'`,`'base'`,`'lg'`,`'xl'`,`'2xl'`,`'3xl'`,`'4xl'` |
70+
| `ariaLabel?` | `string` | `'Progress element'` |
10471

105-
#tab-3
106-
::vue-only
107-
<<<../../../../packages/sfui/frameworks/vue/components/SfProgressLinear/SfProgressLinear.vue
108-
::
109-
::react-only
110-
<<<../../../../packages/sfui/frameworks/react/components/SfProgressLinear/SfProgressLinear.tsx
111-
::
72+
## Slots
11273

113-
::
74+
| Slot name | Description |
75+
| --------- | --------------- |
76+
| `default` | Slotted content |

0 commit comments

Comments
 (0)