Skip to content

Instantly share code, notes, and snippets.

@adarsh-gupta101
Created May 8, 2025 17:07
Show Gist options
  • Save adarsh-gupta101/4f907c4e5319b4efadd3bf782df9201c to your computer and use it in GitHub Desktop.
Save adarsh-gupta101/4f907c4e5319b4efadd3bf782df9201c to your computer and use it in GitHub Desktop.
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