text-fields

3.0.0 • Public • Published

text-fields

npm GitHub package version NPM Downloads

The TextFields class is designed to manage and design text fields (input and textarea) according to Material Design principles. The main function of the class is to add visual and functional enhancements to standard HTML form elements.

1kB gzipped

Demo


Install

yarn add text-fields

Import

import TextFields from 'TextFields';

Import files if your bundler supports SCSS

@import "node_modules/text-fields/src";

or compiled CSS

@import "node_modules/text-fields/dist/index.css";

Usage

document.addEventListener('DOMContentLoaded', () => {
  const textFields = new TextFields();

  textFields.init().then(() => {
    console.log('Text fields are ready!');
  }).catch(error => {
    console.error('Initialization failed:', error);
  });
});

License

text-fields is released under MIT license

Package Sidebar

Install

npm i text-fields

Weekly Downloads

119

Version

3.0.0

License

MIT

Unpacked Size

76.2 kB

Total Files

22

Last publish

Collaborators

  • ux-ui