Components
Raw text

Raw text <ContzaRawText />

React component that renders just a string, nothing more. Raw text is very useful when you don't want any HTML tags. For example one use case is defining page's meta data.

Props

childrenName of the field
nameAlternative way to specify the name of the field (can be overrided by 'children' prop)
placeholderPlaceholder text when editing the text (default: 'Enter Field Name...')

Examples

Here are a few examples how to use Text component.

Heading with description

import { ContzaRawText } from "@contza/react";
 
const Component = () => {
  return (
    <p>
      <ContzaRawText>Heading: Title</ContzaRawText>
    </p>
  );
};
 
export default Component;

Using the "name" prop

import { ContzaRawText } from "@contza/react";
 
const Component = () => {
  return (
    <p>
      <ContzaRawText name="Description" />
    </p>
  );
};
 
export default Component;