Download next.js/examples/cms-payload/payload/blocks/CallToAction/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-payload/payload/blocks/CallToAction/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-payload/payload/blocks/CallToAction/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-payload/payload/blocks/CallToAction/index.ts
551 Bytes
| import { Block } from "payload/types"; | |
| import { backgroundColor } from "../../fields/backgroundColor"; | |
| import linkGroup from "../../fields/linkGroup"; | |
| import richText from "../../fields/richText"; | |
| export const CallToAction: Block = { | |
| slug: "cta", | |
| labels: { | |
| singular: "Call to Action", | |
| plural: "Calls to Action", | |
| }, | |
| fields: [ | |
| backgroundColor({ overrides: { name: "ctaBackgroundColor" } }), | |
| richText(), | |
| linkGroup({ | |
| appearances: ["primary", "secondary"], | |
| overrides: { | |
| maxRows: 2, | |
| }, | |
| }), | |
| ], | |
| }; | |