Skip to content

Commit fb880fd

Browse files
committed
add ProgressCircular example
1 parent 0b810b8 commit fb880fd

File tree

3 files changed

+74
-0
lines changed
  • apps/qwik-demo-app/src/routes/ProgressCircular

3 files changed

+74
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { component$ } from '@builder.io/qwik';
2+
import { SfProgressCircular } from 'qwik-storefront-ui';
3+
4+
export default component$(() => {
5+
return (
6+
<div class="flex gap-4 flex-wrap">
7+
<SfProgressCircular class="!text-cyan-700" value={70} size="3xl" />
8+
<SfProgressCircular size="3xl" value={70} />
9+
<SfProgressCircular class="!ring-yellow-200" value={70} size="3xl" />
10+
</div>
11+
);
12+
});
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { component$ } from '@builder.io/qwik';
2+
import { SfProgressCircular } from 'qwik-storefront-ui';
3+
4+
export default component$(() => {
5+
const value = 70;
6+
7+
return (
8+
<div class="flex gap-4 flex-wrap">
9+
<SfProgressCircular size="2xl" value={value}>
10+
<text
11+
class="font-medium"
12+
textAnchor="middle"
13+
alignmentBaseline="central"
14+
x="100%"
15+
y="100%"
16+
>
17+
{value}%
18+
</text>
19+
</SfProgressCircular>
20+
<SfProgressCircular size="3xl" value={value}>
21+
<text
22+
class="font-medium fill-neutral-400"
23+
textAnchor="middle"
24+
alignmentBaseline="central"
25+
x="100%"
26+
y="100%"
27+
>
28+
{value}%
29+
</text>
30+
</SfProgressCircular>
31+
<SfProgressCircular size="3xl" value={value}>
32+
<text
33+
class="font-medium text-2xs"
34+
textAnchor="middle"
35+
alignmentBaseline="central"
36+
x="100%"
37+
y="100%"
38+
>
39+
{value}%
40+
</text>
41+
</SfProgressCircular>
42+
</div>
43+
);
44+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { component$ } from '@builder.io/qwik';
2+
import { SfProgressCircular } from 'qwik-storefront-ui';
3+
4+
export default component$(() => {
5+
return (
6+
<div class="flex flex-col gap-4 flex-wrap sm:flex-row mr-6 mb-6">
7+
<SfProgressCircular value={30} size="xs" />
8+
<SfProgressCircular value={30} size="sm" />
9+
<SfProgressCircular value={30} size="base" />
10+
<SfProgressCircular value={30} />
11+
<SfProgressCircular value={30} size="lg" />
12+
<SfProgressCircular value={30} size="xl" />
13+
<SfProgressCircular value={30} size="2xl" />
14+
<SfProgressCircular value={30} size="3xl" />
15+
<SfProgressCircular value={30} size="4xl" />
16+
</div>
17+
);
18+
});

0 commit comments

Comments
 (0)