Input
| npm package | npm downloads | jsdelivr | github |
|---|---|---|---|
Install
$ yarn add @_nu/css-input
Tree
@_nu/css-input/
lib
âââ index.css // base style
âââ skins
âââ default
âââ block.css // block input
âââ capsule.css // capsule input đ
âââ disabeld.css // disabeld
âââ focus.css // on focus
âââ large.css // large input
âââ line.css // line input
âââ small.css // small input
Core API
| Selector | Function |
|---|---|
| input.nu_input | base selector |
| .nu_input input | status of disabled |
<input class="nu_input" type="text" placeholder="Enter" />
<label class="nu_input">
<input type="text" placeholder="Enter" />
</label>
For the sake of flexibility these two ways are equivalent.
Skins API
| Selector | Function | skin |
|---|---|---|
| input:disabled | disabled input | disabled.css |
| input:focus | focus input | focus.css |
| ._l | large input | large.css |
| ._s | small input | small.css |
| ._capsule | variant of input | capsule.css |
| ._block | block input | block.css |
| ._line | line of disabled | line.css |
All the skin api is base on the core api.