Skip to content

Commit

Permalink
Update Box example
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorionbearstudio committed Oct 31, 2024
1 parent 6efcae7 commit ee2e2c4
Showing 1 changed file with 76 additions and 1 deletion.
77 changes: 76 additions & 1 deletion example/app/components/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const BoxComponent = () => {
bg="white"
m="md"
borderRadius="sm"
boxShadow="5 5 5 0 rgba(255, 0, 0, 0.5)"
shadow="2xl"
justifyContent="center"
alignItems="center"
>
Expand All @@ -110,6 +110,81 @@ const BoxComponent = () => {
</Box>
</ExampleSection>

<ExampleSection name="boxShadow prop">
<Box flexDirection="row">
<Box
h={40}
w={40}
bg="white"
m="md"
borderRadius="sm"
boxShadow="5 5 5 0 rgba(255, 0, 0, 0.5)"
justifyContent="center"
alignItems="center"
/>
<Box
h={40}
w={40}
bg="white"
m="md"
borderRadius="sm"
boxShadow="5 -5 teal"
justifyContent="center"
alignItems="center"
/>
<Box
h={40}
w={40}
bg="white"
m="md"
borderRadius="sm"
boxShadow="12 12 2 1 rgba(0, 0, 255, .2);"
justifyContent="center"
alignItems="center"
/>
<Box
h={40}
w={40}
bg="white"
m="md"
borderRadius="sm"
boxShadow="inset 5 5 gold"
justifyContent="center"
alignItems="center"
/>
<Box
h={40}
w={40}
bg="white"
m="md"
borderRadius="sm"
boxShadow="3 3 red, -3 0 5 olive"
justifyContent="center"
alignItems="center"
/>
<Box
h={40}
w={40}
bg="white"
m="md"
borderRadius="sm"
boxShadow="0 0 0 4 #f4aab9, 0 0 0 6 #66ccff"
justifyContent="center"
alignItems="center"
/>
<Box
h={40}
w={40}
bg="white"
m="md"
borderRadius="sm"
boxShadow="5 5 0 0 #289FED"
justifyContent="center"
alignItems="center"
/>
</Box>
</ExampleSection>

<ExampleSection name="border">
<Box flexDirection="row">
<Box
Expand Down

0 comments on commit ee2e2c4

Please sign in to comment.