text-fields
Version:
TextFields is designed to create and manage text fields with advanced visuals and functionality, including dynamic notched outlines, floating labels, and adaptive text areas.
57 lines (43 loc) • 1.44 kB
Markdown
<br>
<p align="center"><strong>text-fields</strong></p>
<div align="center">
[](https://www.npmjs.com/package/text-fields)
[](https://github.com/ux-ui-pro/text-fields)
[](https://www.npmjs.org/package/text-fields)
</div>
<p align="center">TextFields is designed to create and manage text fields with advanced visuals and functionality, including dynamic notched outlines, floating labels, and adaptive text areas.</p>
<p align="center"><sup>1kB gzipped</sup></p>
<p align="center"><a href="https://codepen.io/ux-ui/full/PoxqOvp">Demo</a></p>
<br>
➤ **Install**
```console
yarn add text-fields
```
<br>
➤ **Import**
```javascript
import TextFields from 'text-fields';
```
<sub>CSS</sub>
```SCSS
@import "text-fields/dist";
```
<sub>if your bundler supports SCSS</sub>
```SCSS
@import "text-fields/src";
```
<br>
➤ **Usage**
```javascript
document.addEventListener('DOMContentLoaded', () => {
const textFields = new TextFields();
textFields.init().then(() => {
console.log('Text fields are ready!');
}).catch(error => {
console.error('Initialization failed:', error);
});
});
```
<br>
➤ **License**
text-fields is released under MIT license