From c7c372f2b946fcdecfd4ab3fd0d06e3604ab790c Mon Sep 17 00:00:00 2001 From: mimo Date: Wed, 31 Jan 2024 18:45:24 +0900 Subject: [PATCH] feat(react): tag item replace to csf3 --- .../__snapshots__/index.story.storyshot | 3 - .../src/components/TagItem/index.story.tsx | 313 +++++++++--------- 2 files changed, 154 insertions(+), 162 deletions(-) diff --git a/packages/react/src/components/TagItem/__snapshots__/index.story.storyshot b/packages/react/src/components/TagItem/__snapshots__/index.story.storyshot index 3a3019041..9286af2a4 100644 --- a/packages/react/src/components/TagItem/__snapshots__/index.story.storyshot +++ b/packages/react/src/components/TagItem/__snapshots__/index.story.storyshot @@ -106,7 +106,6 @@ exports[`Storyshots TagItem Default 1`] = ` >
+ }, +} as Meta -export const Default: Story = (props) => { - return -} -Default.args = { - label: '#女の子', - bgColor: '#7ACCB1', - href: '', - rel: '', - target: '', - className: '', +export const Default: StoryObj = { + args: { + label: '#女の子', + bgColor: '#7ACCB1', + }, } -export const Playground: Story = ({ - bgColor, - label, - translatedLabel, -}) => { - return ( -
- -
- -
-
-
- -
-
- - -
- -
-
-
- -
-
- - -
- -
-
- -
-
- -
-
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
-
-
- ) +export const Playground: StoryObj = { + render: function Render({ bgColor, label, translatedLabel }) { + return ( +
+ +
+ +
+
+
+ +
+
+ + +
+ +
+
+
+ +
+
+ + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+ ) + }, + args: { + label: '#女の子', + translatedLabel: 'girl', + bgColor: '#7ACCB1', + }, } const Container = styled.div` @@ -180,9 +181,3 @@ const Container = styled.div` padding: 1em; } ` - -Playground.args = { - label: '#女の子', - translatedLabel: 'girl', - bgColor: '#7ACCB1', -}