Download tabler-react/src/components/Page/PageContentWithSidebar.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/PageContentWithSidebar.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/PageContentWithSidebar.react.js
-
curl -L -o PageContentWithSidebar.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/PageContentWithSidebar.react.js
617 Bytes
| // @flow | |
| import * as React from "react"; | |
| import { Page, Grid } from "../"; | |
| type Props = {| | |
| +children?: React.Node, | |
| +header?: React.Node, | |
| +sidebar?: React.Node, | |
| |}; | |
| function PageContentWithSidebar({ | |
| children, | |
| header, | |
| sidebar, | |
| }: Props): React.Node { | |
| return ( | |
| <Page.Content> | |
| {header} | |
| <Grid.Row> | |
| <Grid.Col lg={3} className="order-lg-1 mb-4"> | |
| {sidebar} | |
| </Grid.Col> | |
| <Grid.Col lg={9}>{children}</Grid.Col> | |
| </Grid.Row> | |
| </Page.Content> | |
| ); | |
| } | |
| PageContentWithSidebar.displayName = "Page.ContentWithSidebar"; | |
| export default PageContentWithSidebar; | |