Skip to content

Commit

Permalink
added Spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeystylle committed Jun 20, 2024
1 parent 236add2 commit e731361
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/RadialProgressBar/RadialProgressBar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const Full: Story = {
},
};

export const Empy: Story = {
export const Empty: Story = {
args: {
fillPercentage: 0,
},
Expand Down
19 changes: 19 additions & 0 deletions components/Spinner/Spinner.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { Meta, StoryObj } from '@storybook/react';

import Spinner from './Spinner';

const meta: Meta<typeof Spinner> = {
title: 'Components/Spinner',
component: Spinner,
tags: ['autodocs'],
parameters: {
layout: 'centered',
},
};

export default meta;
type Story = StoryObj<typeof Spinner>;

export const Default: Story = {
args: {},
};
18 changes: 18 additions & 0 deletions components/Spinner/Spinner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import { cn } from '@/lib/utils';

type SpinnerProps = {};

const Spinner = (props: SpinnerProps) => {
return (
<div
className={cn(
'h-16 w-16',
'border-[6px] border-solid border-gray-200 border-t-blue-400 rounded-full',
'animate-spin'
)}
/>
);
};

export default Spinner;
Empty file added components/Spinner/index.tsx
Empty file.

0 comments on commit e731361

Please sign in to comment.