This package has been deprecated

Author message:

this

@rmwc/form-field
TypeScript icon, indicating that this package has built-in type declarations

1.10.1-alpha.0 • Public • Published

Form Fields

MDC Form Field provides an mdc-form-field 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.

Its not immediately clear when to use this component, but it has been included in RMWC for completeness. Please refer to the official MDC docs for use cases.

import { FormField } from 'rmwc/FormField';

<FormField>
  <input type="checkbox" id="input"/>
  <label htmlFor="input">Input Label</label>
</FormField>
import { DocumentComponent } from 'rmwc/Base/utils/DocumentComponent';

<DocumentComponent displayName="FormField" />

Readme

Keywords

Package Sidebar

Install

npm i @rmwc/form-field

Weekly Downloads

0

Version

1.10.1-alpha.0

License

MIT

Unpacked Size

9.58 kB

Total Files

5

Last publish

Collaborators

  • jamesmfriedman