https://github.com/minimalist-components/mn-form
A form component to mn-inputs
https://github.com/minimalist-components/mn-form
agnostic-to-frameworks javascript mn-form mn-inputs pure-javascript webcomponents
Last synced: about 1 month ago
JSON representation
A form component to mn-inputs
- Host: GitHub
- URL: https://github.com/minimalist-components/mn-form
- Owner: minimalist-components
- License: mit
- Created: 2016-12-06T17:31:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-08T07:12:31.000Z (over 7 years ago)
- Last Synced: 2025-03-02T06:03:07.429Z (over 1 year ago)
- Topics: agnostic-to-frameworks, javascript, mn-form, mn-inputs, pure-javascript, webcomponents
- Language: JavaScript
- Size: 90.8 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/js/mn-form)
[](https://gemnasium.com/github.com/minimalist-components/mn-form)
[](https://opensource.org/licenses/mit-license.php)
# mn-form
A form component to mn-inputs.
### Install
```sh
npm install --save mn-form
```
And bundle dependencies and main files in [dist/](https://github.com/minimalist-components/mn-form/tree/master/dist) with your preferred tool.
### Usage
In your html, you can use the tag ```mn-form``` e.g.
```html
```
Note, the class passed to mn-form will be transfer to a form element inside mn-form
The following attributes from forms are supported in this component
- [name](http://www.w3schools.com/tags/att_input_name.asp)
- [spellcheck](http://www.w3schools.com/tags/att_global_spellcheck.asp) (true by default)
- [disabled](https://www.w3schools.com/tags/att_input_disabled.asp)
- [readonly](https://www.w3schools.com/tags/att_input_readonly.asp)