npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-input-customizer

v1.0.7

Published

Create Stunning Floating Input Boxes in React for Enhanced User Interfaces

Downloads

40

Readme

React Input Glow Component

The React Input Glow Component provides a flexible and customizable input field with floating labels. It is designed to be easy to use and highly configurable.

Installation

You can install the React Glow Input Component using npm or yarn:

npm install react-input-customizer

or

yarn add react-input-customizer

Usage

To use the React Input Glow Component, you should import the FloatingInputProps interface from 'react' and use it to define the props for your input field. Here's an example of how to use it:

import React from 'react';
import InputBox from 'react-input-customizer';

const MyForm = () => {
  const handleChange = (value) => {
    // Handle input value change
  };

  return (
    <div>
      <h2>Example Form</h2>
      <label>Name:</label>
      <InputBox
        name="name"
        label="Name"
        placeholder="Enter your name"
        onChange={handleChange}
        // Add other props as needed
      />
      {/* Add more input fields */}
    </div>
  );
};

export default MyForm;

In this example, we import the FloatingInputProps interface and use it to define the props for our input field. We can customize various aspects of the input field, such as the label, placeholder, and event handlers.

Feel free to explore the available props in the FloatingInputProps interface and adjust them to fit your specific use case. The React Input Glow Component is highly customizable and can be integrated into your forms with ease.

Storybook Example

You can also explore more examples in the React Input Glow Component Storybook.

Props Table

Here's a table of available props for the FloatingInputProps interface, arranged alphabetically:

| Prop | Type | Description | | ------------------ | -------------- | ------------------------------------------------- | | borderColor | string | The border color of the input field. | | borderRadius | string | The border radius for the input container. | | borderWidth | string | The border width of the input field. | | className | string | Additional CSS class for the input container. | | disabled | boolean | Whether the input is disabled. | | errorLabelTextColor| string | The text color for the error label. | | errorText | string | The error text to display. | | errorTextClassName | string | Additional CSS class for the error message. | | errorTextColor | string | The text color for the error message. | | height | string | The height of the input field. | | icon | React.ReactNode | An icon component to display within the input. | | iconPosition | 'left' | 'right' | The position of an icon (if provided). | | inputClassName | string | Additional CSS class for the input field. | | isFloating | boolean | Whether the label should float on focus. | | label | string | The label for the input field. | | labelBackground | string | The background color of the label. | | labelClassName | string | Additional CSS class for the label element. | | labelPosition | 'inline' | 'outside' | 'inside' | The position of the label. | | labelTextColor | string | The text color of the label. | | labelClassName | string | Additional CSS class for the legend | | name | string | The name attribute for the input field. | | placeholder | string | The placeholder text for the input field. | | primaryColor | string | The primary color of the input field. | | showIcon | boolean | An icon boolean to display within the input. | | required | boolean | Whether the input is required. | | textColor | string | The text color of the input field. | | toggleOffIcon | React.ReactNode | An icon to use when the input is toggled off (e.g., for passwords). | | toggleOnIcon | React.ReactNode | An icon to use when the input is toggled on (e.g., for passwords). | | type | string | The type of the input field (e.g., "text", "password"). | | width | string | The width of the input field. |