Skip to content

Commit

Permalink
issue #309 refactor: spinner story description add
Browse files Browse the repository at this point in the history
  • Loading branch information
sikkzz committed Jul 18, 2024
1 parent a6e8bba commit 8148f1f
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import type { Meta, StoryObj } from "@storybook/react";

import Spinner from "@/components/Spinner/Spinner";

import { containerStyle, informationStyle, titleStyle } from "../../../.storybook/styles";

const meta: Meta<typeof Spinner> = {
title: "Spinner",
component: Spinner,
Expand All @@ -22,5 +24,15 @@ const meta: Meta<typeof Spinner> = {
export default meta;

export const Primary: StoryObj<typeof meta> = {
render: ({ size, width }) => <Spinner size={size} width={width} />,
render: ({ size, width }) => (
<ul css={containerStyle}>
<li css={informationStyle}>
<h6 css={titleStyle}>
<span>size : {size}</span>width : {width}
</h6>

<Spinner size={size} width={width} />
</li>
</ul>
),
};

0 comments on commit 8148f1f

Please sign in to comment.