Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rmwc/formfield

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/formfield - npm Package Compare versions

Comparing version 14.0.4 to 14.0.5

8

package.json
{
"name": "@rmwc/formfield",
"version": "14.0.4",
"version": "14.0.5",
"main": "./index.js",

@@ -39,3 +39,2 @@ "types": "./index.d.ts",

"peerDependencies": {
"@material/form-field": "^14.0.0",
"react": ">=16.8.x",

@@ -45,5 +44,6 @@ "react-dom": ">=16.8.x"

"dependencies": {
"@rmwc/base": "14.0.4",
"@rmwc/types": "14.0.4"
"@material/form-field": "^14.0.0",
"@rmwc/base": "14.0.5",
"@rmwc/types": "14.0.5"
}
}
# 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.
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.

@@ -8,18 +8,12 @@ - Module **@rmwc/formfield**

- Using CSS Loader
- import **'@rmwc/formfield/styles';**
- import '@rmwc/formfield/styles';
- Or include stylesheets
- **'@material/form-field/dist/mdc.form-field.css'**;
- **'@material/form-field/dist/mdc.form-field.css'**
- MDC Docs: [https://material.io/develop/web/components/input-controls/form-fields/](https://material.io/develop/web/components/input-controls/form-fields/)
```js
<FormField\>
<input type\="checkbox" id\="input" />
<label htmlFor\="input"\>Input Label</label\>
</FormField\>
```jsx
<FormField>
<input type="checkbox" id="input" />
<label htmlFor="input">Input Label</label>
</FormField>
```

@@ -29,13 +23,7 @@

```js
<FormField alignEnd\>
<input type\="checkbox" id\="input" />
<label htmlFor\="input"\>Input Label</label\>
</FormField\>
```jsx
<FormField alignEnd>
<input type="checkbox" id="input" />
<label htmlFor="input">Input Label</label>
</FormField>
```

@@ -45,13 +33,7 @@

```js
<FormField noWrap\>
<input type\="checkbox" id\="input" />
<label htmlFor\="input"\>Input Label</label\>
</FormField\>
```jsx
<FormField noWrap>
<input type="checkbox" id="input" />
<label htmlFor="input">Input Label</label>
</FormField>
```

@@ -61,15 +43,21 @@

```js
```jsx
<FormField spaceBetween>
<input type="checkbox" id="input" />
<label htmlFor="input">Input Label</label>
</FormField>
```
<FormField spaceBetween\>
## FormField
A FormField component.
<input type\="checkbox" id\="input" />
### Props
<label htmlFor\="input"\>Input Label</label\>
| Name | Type | Description |
|------|------|-------------|
| `alignEnd` | `boolean` | Position the input after the label. |
| `foundationRef` | `Ref<MDCFormFieldFoundation<>>` | Advanced: A reference to the MDCFoundation. |
| `noWrap` | `boolean` | Forces text to stay on a single line. |
| `spaceBetween` | `boolean` | Adds space between content. |
</FormField\>
```
## FormField
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc