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
children | Name of the field |
name | Alternative way to specify the name of the field (can be overrided by 'children' prop) |
placeholder | Placeholder 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;