@ok8omk/vinput

1.0.2 • Public • Published

Vinput

Vi like <input> React Component.

Try it

:octocat: Github pages

Component Interface

/**
 * [Vinput]
 * @param  {string} [name]                         Input name props.
 * @param  {number} [width=500]                    Component width.
 * @param  {number} [fontSize=24]                  Component font size.
 * @param  {string} [fontFamilies=["Inconsolata"]] Component font families. monospace fonts are recommended.
 */

Font configuration

By default, this component uses Inconsolata font. Therefore append this link tag in head tag.

<link
  href="https://fonts.googleapis.com/css?family=Inconsolata&display=swap"
  rel="stylesheet"
/>

If you wanna use another font, inject the font reference. Also you have to assign correspond font for Vinput arguments.

Usage Example

<Vinput
  name="email"
  width={1024}
  fontSize={18}
  fontFamilies={["Noto", "Inconsolata"]}
/>

Package Sidebar

Install

npm i @ok8omk/vinput

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

172 kB

Total Files

11

Last publish

Collaborators

  • ok8omk