Skip to content

Commit 529d885

Browse files
committed
Added the spinner component to storybook
1 parent 4863d0e commit 529d885

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { Spinner } from "~/components/primitives/Spinner";
2+
3+
export default function Story() {
4+
return (
5+
<div className="flex flex-col items-start gap-y-3 p-4">
6+
<div className="flex items-center gap-x-4 rounded-md bg-charcoal-750 px-3 py-2 text-text-bright">
7+
Blue: <Spinner color="blue" />
8+
</div>
9+
<div className="flex items-center gap-x-4 rounded-md bg-charcoal-750 px-3 py-2 text-text-bright">
10+
White: <Spinner color="white" />
11+
</div>
12+
<div className="flex items-center gap-x-4 rounded-md bg-charcoal-600 px-3 py-2 text-text-bright">
13+
Muted: <Spinner color="muted" />
14+
</div>
15+
<div className="flex items-center gap-x-2">
16+
<div className="flex items-center gap-x-4 rounded-md bg-charcoal-600 px-3 py-2 text-text-bright">
17+
Dark: <Spinner color="dark" />
18+
</div>
19+
<div className="flex items-center gap-x-4 rounded-md bg-primary px-2 py-2 text-text-bright">
20+
<Spinner color="dark" />
21+
</div>
22+
</div>
23+
<div className="flex items-center gap-x-4 rounded-md bg-charcoal-600 px-3 py-2 text-text-bright">
24+
Custom: <Spinner color={{ background: "#EA189E", foreground: "#6532F5" }} />
25+
</div>
26+
</div>
27+
);
28+
}

apps/webapp/app/routes/storybook/route.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ const stories: Story[] = [
8484
name: "Shortcuts",
8585
slug: "shortcuts",
8686
},
87+
{
88+
name: "Spinners",
89+
slug: "spinner",
90+
},
8791
{
8892
name: "Switch",
8993
slug: "switch",

0 commit comments

Comments
 (0)