Text Field

<sw-text-field>

ready
Simple text field.

Usage

Loading...
<sw-text-field type="text" label="Name" placeholder="placeholder goes here..."></sw-text-field>

Component properties

Property name Type Default
value
placeholder String
copyable Boolean false
copyableTooltip Boolean false

Methods

Method name Parameters
onChange event
onInput event
restoreInheritance No parameters

Imports

  • ./sw-text-field.html.twig

Watcher

  • value

Mixins

  • sw-form-field
  • validation

Twig blocks

  • sw_text_field

Slots

  • prefix
  • suffix