react-code-dataset
/
next.js
/examples
/cms-payload
/payload
/fields
/richText
/largeBody
/Element
/index.tsx
| import React from "react"; | |
| import "./index.scss"; | |
| const baseClass = "rich-text-large-body"; | |
| const LargeBodyElement: React.FC<{ | |
| attributes: any; | |
| element: any; | |
| children: React.ReactNode; | |
| }> = ({ attributes, children }) => ( | |
| <div {...attributes}> | |
| <span className={baseClass}>{children}</span> | |
| </div> | |
| ); | |
| export default LargeBodyElement; | |