Created
May 8, 2025 17:07
-
-
Save adarsh-gupta101/4f907c4e5319b4efadd3bf782df9201c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from "react"; | |
import { Box, Heading, Text, Button } from "rebass"; | |
function App() { | |
return ( | |
<Box p={4} bg="white" boxShadow="0 0 8px rgba(0, 0, 0, 0.1)"> | |
<Image | |
src={"https://rebassjs.org/logo.svg"} | |
sx={{ | |
width: ["100%", "50%"], | |
borderRadius: 8, | |
}} | |
/> | |
<Heading fontSize={5} mb={3}> | |
Welcome to MyComponent | |
</Heading> | |
<Text mb={3}> | |
This is a simple example of using Rebass to build a UI component in | |
React. | |
</Text> | |
<Button variant="Secondary">Click me!</Button> | |
</Box> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment