Skip to content

Commit 6094769

Browse files
committed
add storybook example for InlineText
1 parent 5b5f047 commit 6094769

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React from "react";
2+
import { Meta, StoryFn } from "@storybook/react";
3+
4+
import { InlineText } from "../InlineText";
5+
6+
import overflowTextConfig from "./OverflowText.stories";
7+
8+
const config = {
9+
title: "Components/Typography/InlineText",
10+
component: InlineText,
11+
argTypes: {
12+
children: overflowTextConfig.argTypes?.children,
13+
},
14+
} as Meta<typeof InlineText>;
15+
export default config;
16+
17+
const Template: StoryFn<typeof InlineText> = (args) => <InlineText {...args} />;
18+
19+
export const Default = Template.bind({});
20+
Default.args = {
21+
children: (
22+
<>
23+
<div>Block line 1</div>
24+
<div>Block line 2</div>
25+
</>
26+
),
27+
};

0 commit comments

Comments
 (0)