Download next.js/examples/cms-builder-io/components/post-body.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-builder-io/components/post-body.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-builder-io/components/post-body.js
-
curl -L -o post-body.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-builder-io/components/post-body.js
362 Bytes
| import { BUILDER_CONFIG } from "@/lib/constants"; | |
| import { BuilderComponent } from "@builder.io/react"; | |
| export default function PostBody({ content }) { | |
| return ( | |
| <div className="max-w-2xl mx-auto"> | |
| <BuilderComponent | |
| options={{ includeRefs: true }} | |
| model={BUILDER_CONFIG.postsModel} | |
| content={content} | |
| /> | |
| </div> | |
| ); | |
| } | |