Unstack for Developers
  • Overview
  • Getting started
    • Custom Themes
    • Custom Components
  • Component Types
    • Section
    • Header & Footer
    • Banner
  • Basic Tags
    • Actions
    • Box
    • Code
    • Element
    • Media
    • Plaintext
    • Richtext
    • Collection
    • Article Collection
  • eCommerce Tags
    • Product
    • Product Inventory
    • Product Price
    • Product Options
    • Quantity Selector
    • Cart & Drawer (soon)
  • Utility Tags
    • Generator
    • JSONParser
  • Other NoML Features
    • Variables
    • Raw HTML
    • Component Properties
Powered by GitBook
On this page
  1. Basic Tags

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.

<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)

PreviousMediaNextRichtext

Last updated 1 year ago