JSPM

@rmwc/formfield

8.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12116
  • Score
    100M100P100Q135056F
  • License MIT

RMWC FormField component

Package Exports

  • @rmwc/formfield
  • @rmwc/formfield/README.md
  • @rmwc/formfield/dist/index.js
  • @rmwc/formfield/next/index.js
  • @rmwc/formfield/styles
  • @rmwc/formfield/styles.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rmwc/formfield) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Form Fields

MDC Form Field provides an mdc-formfield helper class for easily making theme-aware, RTL-aware form field + label combos. It also provides an MDCFormField class for easily making input ripples respond to label events.

<FormField>
  <input type="checkbox" id="input" />
  <label htmlFor="input">Input Label</label>
</FormField>

FormField

A FormField component.

Props

Name Type Description
alignEnd undefined | false | true Position the input after the label.
foundationRef React.Ref<MDCFormFieldFoundation> Advanced: A reference to the MDCFoundation.