-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add stories for LoadingSkeleton and BorderedTile (#13730)
- Loading branch information
Showing
5 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
airbyte-webapp/src/components/ui/BorderedTiles/BorderedTiles.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { StoryObj } from "@storybook/react"; | ||
|
||
import { BorderedTiles, BorderedTile } from "components/ui/BorderedTiles"; | ||
|
||
import { Heading } from "../Heading"; | ||
import { Text } from "../Text"; | ||
|
||
export default { | ||
title: "ui/BorderedTiles", | ||
component: BorderedTiles, | ||
argTypes: {}, | ||
} as StoryObj<typeof BorderedTiles>; | ||
|
||
export const Default: StoryObj<typeof BorderedTiles> = { | ||
args: {}, | ||
render: (args) => ( | ||
<BorderedTiles {...args}> | ||
<BorderedTile> | ||
<Heading as="h2">Box 1</Heading> | ||
<Text>Lorem ipsum dolor </Text> | ||
</BorderedTile> | ||
<BorderedTile> | ||
<Heading as="h2">Box 2</Heading> | ||
<Text>Lorem ipsum dolor </Text> | ||
</BorderedTile> | ||
<BorderedTile> | ||
<Heading as="h2">Box 3</Heading> | ||
<Text>Lorem ipsum dolor </Text> | ||
</BorderedTile> | ||
<BorderedTile> | ||
<Heading as="h2">Box 4</Heading> | ||
<Text>Lorem ipsum dolor </Text> | ||
</BorderedTile> | ||
</BorderedTiles> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
airbyte-webapp/src/components/ui/LoadingSkeleton/LoadingSkeleton.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { StoryObj } from "@storybook/react"; | ||
|
||
import { LoadingSkeleton } from "components/ui/LoadingSkeleton"; | ||
|
||
import { FlexContainer } from "../Flex"; | ||
|
||
export default { | ||
title: "ui/LoadingSkeleton", | ||
component: LoadingSkeleton, | ||
argTypes: {}, | ||
} as StoryObj<typeof LoadingSkeleton>; | ||
|
||
export const Default: StoryObj<typeof LoadingSkeleton> = { | ||
args: {}, | ||
render: () => ( | ||
<FlexContainer direction="column" gap="xl"> | ||
<LoadingSkeleton /> | ||
<LoadingSkeleton /> | ||
<LoadingSkeleton /> | ||
</FlexContainer> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters