@pmwcs/formfield
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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.

Dependents (3)

Package Sidebar

Install

npm i @pmwcs/formfield

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

8.05 kB

Total Files

12

Last publish

Collaborators

  • commenthol