1.0.2 • Published 4 years ago

@ok8omk/vinput v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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"]}
/>