Buckets:
| import "@compiled/react"; | |
| import { BoxStyles } from "../components/class-names-box"; | |
| import { Button } from "../components/styled-button"; | |
| import { secondary, primary } from "../style/colors"; | |
| const IndexPage = () => ( | |
| <BoxStyles> | |
| {(props) => ( | |
| <div {...props}> | |
| <Button color={secondary}>Styled button</Button> | |
| <div | |
| css={{ | |
| marginTop: 8, | |
| flexGrow: 1, | |
| height: "100%", | |
| display: "flex", | |
| alignItems: "center", | |
| justifyContent: "center", | |
| fontFamily: "sans-serif", | |
| color: primary, | |
| border: `1px solid ${primary}`, | |
| }} | |
| > | |
| CSS prop | |
| </div> | |
| </div> | |
| )} | |
| </BoxStyles> | |
| ); | |
| export default IndexPage; | |
Xet Storage Details
- Size:
- 775 Bytes
- Xet hash:
- 9bc53c73e028eb59db6ca6ba9ecdb903c69496f225b7695e2cee15235209726c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.