-
Notifications
You must be signed in to change notification settings - Fork 536
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 #210 from primer/rename-block
Rename Block and Box ✨
- Loading branch information
Showing
45 changed files
with
659 additions
and
653 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,49 @@ | ||
import React from 'react' | ||
import {LiveEditor} from '@compositor/kit' | ||
import {BorderBox, Box} from '../../src' | ||
|
||
const BorderBoxExample = { | ||
name: 'BorderBox', | ||
element: ( | ||
<div> | ||
<Box mb={6}> | ||
<LiveEditor code={`<BorderBox>This is a BorderBox</BorderBox>`} scope={{BorderBox}} /> | ||
</Box> | ||
<Box mb={6}> | ||
<LiveEditor code={`<BorderBox p={2}>This is a BorderBox with padding.</BorderBox>`} scope={{BorderBox}} /> | ||
</Box> | ||
<Box mb={6}> | ||
<LiveEditor | ||
code={`<BorderBox boxShadow="small" m={4} p={2}>This is a BorderBox with shadow.</BorderBox>`} | ||
scope={{BorderBox}} | ||
/> | ||
</Box> | ||
<Box mb={6}> | ||
<LiveEditor | ||
code={`<BorderBox boxShadow="medium" m={4} p={2}>This is a BorderBox with a medium shadow.</BorderBox>`} | ||
scope={{BorderBox}} | ||
/> | ||
</Box> | ||
<Box mb={6}> | ||
<LiveEditor | ||
code={`<BorderBox boxShadow="large" m={4} p={2}>This is a BorderBox with a large shadow.</BorderBox>`} | ||
scope={{BorderBox}} | ||
/> | ||
</Box> | ||
<Box mb={6}> | ||
<LiveEditor | ||
code={`<BorderBox boxShadow="extra-large" m={4} p={2}>This is a BorderBox with an extra-large shadow.</BorderBox>`} | ||
scope={{BorderBox}} | ||
/> | ||
</Box> | ||
<Box mb={6}> | ||
<LiveEditor | ||
code={`<BorderBox borderColor="green.5" p={2}>This is a BorderBox with a green border.</BorderBox>`} | ||
scope={{BorderBox}} | ||
/> | ||
</Box> | ||
</div> | ||
) | ||
} | ||
|
||
export default BorderBoxExample |
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.