mn-option

radio type

checkbox type

natural checkbox type

natural radio type

npm install --save mn-option

And bundle dependencies and main files in dist/ with your preferred tool.

Usage

in your html, you can use the tag mn-option e.g.

To define as radio, use the attribute type

Custom attributes

- placeholder - custom attribute, to define the text visible

- type (only checkbox and radio)

Natural checkbox or radio

Is just a css class, to define a minimal design. Useful in some cases. E.g.

The following attributes from input type radio are supported in this component, autofocus, checked, disabled, readonly, name, required, value and id.

Too works with a separted label with an attribute for.