storybook: add Button and Spinner examples

This commit is contained in:
Yangshun Tay
2022-10-04 09:04:08 +08:00
parent de33d38e1b
commit 842837fb4e
15 changed files with 340 additions and 116 deletions

View File

@ -1,4 +1,4 @@
import { Button, CounterButton } from '@tih/ui';
import { Button, Spinner } from '@tih/ui';
export default function HomePage() {
return (
@ -8,8 +8,8 @@ export default function HomePage() {
<h1 className="text-center text-4xl font-bold text-red-600">
Homepage
</h1>
<CounterButton />
<Button label="Button text" size="md" variant="primary" />
<Spinner size="md" />
</div>
</div>
</main>