Download chakra-ui/packages/react/src/components/container/container.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/components/container/container.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/components/container/container.tsx
-
curl -L -o container.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/components/container/container.tsx
577 Bytes
| "use client" | |
| import { | |
| type HTMLChakraProps, | |
| type RecipeProps, | |
| type UnstyledProp, | |
| createRecipeContext, | |
| } from "../../styled-system" | |
| const { withContext, PropsProvider } = createRecipeContext({ | |
| key: "container", | |
| }) | |
| export interface ContainerBaseProps | |
| extends RecipeProps<"container">, | |
| UnstyledProp {} | |
| export interface ContainerProps | |
| extends HTMLChakraProps<"div", ContainerBaseProps> {} | |
| export const Container = withContext<HTMLDivElement, ContainerProps>("div") | |
| export const ContainerPropsProvider = | |
| PropsProvider as React.Provider<ContainerBaseProps> | |