> For the complete documentation index, see [llms.txt](https://developer.unstack.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.unstack.com/docs/tags/plaintext.md).

# Plaintext

The PlainText tag allows you to create a simple text entry input in the editor, which can also be associated with a given HTML tag, without giving your users full richtext capabilities.

```jsx
<PlainText dataRef={content.text} tagName="p" />
```

## Attributes

* **dataRef**: DataLocator - the data-element storing the Plaintext tag's configuration
* **tagName**: string - a hard-coded tag name for the rendered element
* **className**: string (optional) - a hard-coded class name to add to the rendered element
* **maxWords**: number (optional) - the maximum number of words allowed in this field
* **placeholder**: string (optional) - placeholder text to display in the editor when empty
* **renderEmptyElement**: string (optional) - when set to True, will render the tag in tagName when there is no content defined by the author (Default: False)
