How to use the @material/textfield/index.MDCTextField function in @material/textfield

To help you get started, we’ve selected a few @material/textfield examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github material-components / material-components-web-catalog / src / ThemeCatalog.js View on Github external
initTextField = ele => ele && this.componentInstances.push(
      new MDCTextField(ele));
github Tencent / omi / packages / omim / src / text-field / index.tsx View on Github external
installed() {
    this.mdc = new MDCTextField(this.root)
  }
github material-components / material-components-web-catalog / src / TextFieldCatalog.js View on Github external
componentDidUpdate() {
    if (this.textField) {
      this.textField.destroy();
      this.textField = null;
    }
    if (this.tfEl) {
      this.textField = new MDCTextField(this.tfEl);
    }
  }
github material-components / material-components-web-catalog / src / TextFieldCatalog.js View on Github external
initRef = (el) => {
    if (el) {
      this.tfEl = el;
      this.textField = new MDCTextField(el);
    }
  };
github material-components / material-components-web-catalog / src / TextFieldCatalog.js View on Github external
      <div> textFieldEl &amp;&amp; new MDCTextField(textFieldEl)}&gt;
        {characterCounter &amp;&amp; textarea ?  : null}</div>