Download chakra-ui/apps/compositions/src/examples/aspect-ratio-basic.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/apps/compositions/src/examples/aspect-ratio-basic.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/apps/compositions/src/examples/aspect-ratio-basic.tsx
-
curl -L -o aspect-ratio-basic.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/apps/compositions/src/examples/aspect-ratio-basic.tsx
221 Bytes
| import { AspectRatio, Center } from "@chakra-ui/react" | |
| export const AspectRatioBasic = () => { | |
| return ( | |
| <AspectRatio bg="bg.muted" ratio={2 / 1}> | |
| <Center fontSize="xl">2 / 1</Center> | |
| </AspectRatio> | |
| ) | |
| } | |