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

@tuv-indo/input

v0.0.2

Published

input component for Tuv UI

Downloads

433

Readme

tuv Input

tuv Input is a strict and customizable Input component for web development projects, designed for simplicity and adherence to strict design guidelines.

Screenshots

App Screenshot

Package instalation

Instal package using pnpm

  pnpm add @tuv/input

Instal package using yarn

  yarn add @tuv/input

Instal package using npm

  npm i @tuv/input

Usage/Examples (you can combine using icon package tuv)

 import React, {SVGProps, useRef} from "react";
import {Input} from "@tuv/input";
import ReactDOM from "react-dom/client";

export interface IconProps extends SVGProps<SVGSVGElement> {}

export const IcBel = ({...rest}: IconProps) => {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      {...rest}
      viewBox="0 0 24 26"
      fill="none"
    >
      <path
        d="M8.68924 1.76023C9.69268 1.23925 10.8152 0.947739 12 0.947739C16.2663 0.947739 19.7249 4.7276 19.7249 9.39031V10.2395C19.7249 11.2587 20.001 12.2549 20.5182 13.1029L21.7857 15.1809C22.9436 17.0788 22.0597 19.6588 20.046 20.259C14.7782 21.8291 9.2218 21.8291 3.954 20.259C1.94033 19.6588 1.05645 17.0788 2.21424 15.1809L3.48179 13.1029C3.99905 12.2549 4.27507 11.2587 4.27507 10.2395V9.39031C4.27507 8.09543 4.5418 6.86864 5.0185 5.77198"
        stroke="currentColor"
        stroke-width="1.55"
        stroke-linecap="round"
      />
      <path
        d="M6.84937 21.4366C7.5991 23.5431 9.62207 25.0522 12 25.0522C12.2798 25.0522 12.5548 25.0314 12.8232 24.991M17.1506 21.4366C16.8449 22.2954 16.3276 23.0549 15.6609 23.6533"
        stroke="currentColor"
        stroke-width="1.55"
        stroke-linecap="round"
      />
    </svg>
  );
};

const App = () => {
  const ref = useRef<HTMLInputElement | null>(null);
  return (
    <div>
      <h1>Component test</h1>
      <div style={{margin: "auto", width: "50vw"}}>
        <Input
          leftIcon={<IcBel />}
          rightIcon={<IcBel />}
          leftAddons={"Rp"}
          rightAddons={"Rp"}
          onClickRightIcon={() => alert("woke")}
          placeholder="CTRL + K to search Query"
          highlightPlaceholder="CTRL + K"
          size={"md"}
          onChange={(e) => console.log("e", e.target.value)}
          ref={ref}
        />
      </div>
    </div>
  );
};

ReactDOM.createRoot(document.getElementById("app")!).render(<App />);

Props @tuv/Input

Props that you can pass to <Input {...props}/>

| Prop Name | Value | required | | :------------------- | :------------------------------------------ | :------- | | leftIcon | (icon svg) | false | | rightIcon | (icon svg) | false | | size | "sm"/"md"/"lg" | false | | status | "error" / "warning" / "disable" / "default" | false | | inputUse | "icon" / "addons" | false | | variant | "outline" / "filled" / "flushed" | false | | placeholder | string | false | | highlightPlaceholder | string | false | | currency | boolean | false |