Socket
Book a DemoInstallSign in
Socket

@rmwc/form-field

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/form-field

RMWC FormField component

latest
Source
npmnpm
Version
1.10.1-alpha.0
Version published
Maintainers
1
Created
Source

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.

  • import from rmwc/FormField
  • import styles from @material/form-field/dist/mdc.form-field.css
  • https://material.io/develop/web/components/input-controls/form-fields/

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" />

Keywords

rmwc

FAQs

Package last updated on 06 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts