Skip to content

Commit

Permalink
fix: whiteSpace の違いがわかるように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
uknmr committed Oct 10, 2024
1 parent 1b9ea6e commit 881e51a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,18 @@ export const Leading: StoryObj<typeof Text> = {
export const WhiteSpace: StoryObj<typeof Text> = {
name: 'whiteSpace',
render: (args) => (
<Stack>
<Stack gap={3} className="shr-w-[10em]">
<Text {...args} whiteSpace="normal" />
<Text {...args} whiteSpace="nowrap" />
<Text {...args} whiteSpace="pre" />
<Text {...args} whiteSpace="pre-line" />
<Text {...args} whiteSpace="pre-wrap" />
</Stack>
),
args: {
children:
'well-working\n\n労働にまつわる社会課題をなくし、誰もがその人らしく働ける社会をつくる。',
},
}

export const Emphasis: StoryObj<typeof Text> = {
Expand Down

0 comments on commit 881e51a

Please sign in to comment.