-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add List to kitchen sink and fix website build
- Loading branch information
Showing
3 changed files
with
65 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import React from "react"; | ||
import { Container, List, Text, Link } from "basis"; | ||
import Layout from "./Layout"; | ||
|
||
function KitchenSinkList() { | ||
return ( | ||
<Layout name="List"> | ||
<Container padding="4" width="20"> | ||
<Text textStyle="heading4" margin="0 0 4 0"> | ||
Unordered list: | ||
</Text> | ||
<List> | ||
<List.Item> | ||
<Text>Short item</Text> | ||
</List.Item> | ||
<List.Item> | ||
<Text> | ||
Very long item with a{" "} | ||
<Link href="#" newTab={false}> | ||
link | ||
</Link>{" "} | ||
and a <b>bold text</b> that demonstrates a multi-line paragraph. | ||
</Text> | ||
<Text textStyle="legal" margin="4 0 0 0"> | ||
{`Note that you can override List's textStyle.`} | ||
</Text> | ||
</List.Item> | ||
<List.Item> | ||
<Text> | ||
<strong>Nested list</strong> | ||
</Text> | ||
<List textStyle="body2" margin="3 0 0 0"> | ||
<List.Item>First</List.Item> | ||
<List.Item>Second</List.Item> | ||
<List.Item>Third</List.Item> | ||
</List> | ||
</List.Item> | ||
</List> | ||
</Container> | ||
<Container padding="4" width="20" bg="grey.t05"> | ||
<Text textStyle="heading4" margin="0 0 4 0"> | ||
Ordered list: | ||
</Text> | ||
<List type="ordered" textStyle="subtitle2"> | ||
<List.Item>First item</List.Item> | ||
<List.Item>Second item</List.Item> | ||
<List.Item> | ||
<Text> | ||
<b>Nested list</b> | ||
</Text> | ||
<List type="ordered" textStyle="body2" margin="3 0 0 0"> | ||
<List.Item>Hello</List.Item> | ||
<List.Item>World</List.Item> | ||
</List> | ||
</List.Item> | ||
</List> | ||
</Container> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default KitchenSinkList; |
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
c47d2ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: