Socket
Socket
Sign inDemoInstall

@idot-digital/advanced-input

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idot-digital/advanced-input

React inputs, validating regexp, chars and more. Able to switch between small inputs and textareas.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

advanced-input

React inputs, validating regexp, chars and more. Able to switch between small inputs and textareas.

NPM JavaScript Style Guide

Install

npm install --save advanced-input

Usage

import React, { Component } from 'react'

import AdvancedInput from 'advanced-input'
import 'advanced-input/dist/index.css'

class Example extends Component {
  render() {
    return (
      <AdvancedInput
        defaultValue={'#'}
        value={'test'}
        valueSelection={{ start: 2 }}
        useTextareaAtLength={20}
        regexp={/#([a-fA-F0-9]{3}){1,2}/}
        allowedChars={/#|[a-fA-F0-9]/}
        dontValidateDuringInput
        callback={(input) => console.log(input)}
        errorCallback={() => console.log('error')}
        extendToTextareaOnLinebreak
        placeholder='Some text'
        floatingPlaceholder
      />
    )
  }
}

License

UNLICENSED © @idot-digital

FAQs

Package last updated on 27 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc