-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from jtiala/stack
Add Stack component
- Loading branch information
Showing
17 changed files
with
562 additions
and
394 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ dist | |
out | ||
build | ||
*.tsbuildinfo | ||
vite.config.ts.timestamp-* | ||
storybook-static | ||
reports | ||
.next | ||
|
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ const preview: Preview = { | |
"Typography", | ||
"Navigation", | ||
"Form", | ||
"Layout", | ||
], | ||
}, | ||
}, | ||
|
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,31 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { Stack } from "@themeless-ui/react"; | ||
|
||
const meta = { | ||
title: "Layout/Stack", | ||
component: Stack, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof Stack>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
const children = [ | ||
<div key="1">1</div>, | ||
<div key="2">2</div>, | ||
<div key="3">3</div>, | ||
]; | ||
|
||
export const Vertical: Story = { | ||
args: { | ||
direction: "vertical", | ||
children, | ||
}, | ||
}; | ||
|
||
export const Horizontal: Story = { | ||
args: { | ||
direction: "horizontal", | ||
children, | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,17 +1,20 @@ | ||
import { Heading, Paragraph } from "@themeless-ui/react"; | ||
import { Heading, Paragraph, Stack } from "@themeless-ui/react"; | ||
|
||
export default async function About() { | ||
return ( | ||
<article> | ||
<Heading level={1}>About</Heading> | ||
<Paragraph> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pulvinar | ||
quam ipsum, at placerat quam eleifend in. Nulla gravida eros eu vehicula | ||
laoreet. Duis vitae consequat ante. Vestibulum quis semper neque. | ||
Pellentesque et ante ut nisi posuere dictum. Aenean dictum ligula id | ||
velit cursus, in tincidunt felis faucibus. Class aptent taciti sociosqu | ||
ad litora torquent per conubia nostra, per inceptos himenaeos. | ||
</Paragraph> | ||
<Stack> | ||
<Heading level={1}>About</Heading> | ||
<Paragraph> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pulvinar | ||
quam ipsum, at placerat quam eleifend in. Nulla gravida eros eu | ||
vehicula laoreet. Duis vitae consequat ante. Vestibulum quis semper | ||
neque. Pellentesque et ante ut nisi posuere dictum. Aenean dictum | ||
ligula id velit cursus, in tincidunt felis faucibus. Class aptent | ||
taciti sociosqu ad litora torquent per conubia nostra, per inceptos | ||
himenaeos. | ||
</Paragraph> | ||
</Stack> | ||
</article> | ||
); | ||
} |
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
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
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
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
Oops, something went wrong.