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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@licuido-ui/ui_otp

v3.0.2

Published

The OTP component allows you to create a one-time password input field for authentication purposes.

Downloads

6

Readme

OTP

The OTP component allows you to create a one-time password input field for authentication purposes.

Author

Modify

Link

Story Book Link ErrorPage

PlayGround

Try it have a fun codeBox

Installation

npm i @licuido-ui/ui_otp

Import component

import { OTP } from '@licuido-ui/ui_otp';

Usage

 <OTP
        variant='metans'
        customProps={{
          onResend: () => console.log('api call'),
          numInputs: 4,
          otpTimer: 0,
          errorMsg: 'in valid',
        }}
      />

Image

OTP img

Props

| Prop | Type | Default Value | Description | | ------------- | -------- | ----------------- | ------------------------------------------------- | | variant | String | 'default' | Type of select component. | | customProps | Object | {} | customProps containing various custom properties: |

customProps contain these props , | Prop | Type | Default Value | Description | | ---------------------- | ------------------------------------------- | ----------------- | ----------------------------------------------------------------- | | Prop Name | Type | Default Value | Description | | className | string | '' | Additional CSS class for custom styling. | | sx | SxProps<Theme> | {} | Custom styles using the Material-UI theme. | | numInputs | number | 4 | The number of OTP input fields. | | shouldAutoFocus | boolean | false | Whether the first input field should auto-focus. | | otpTimer | number | 60 | The initial value of the OTP timer (in seconds). | | inputType | 'password' \| 'text' \| 'number' \| 'tel' | 'text' | The type of input for OTP fields. | | renderSeparator | Function or React.ReactNode | null | A function or React node to render separators between OTP fields. | | placeholder | string | '' | Placeholder text for OTP input fields. | | containerStyle | React.CSSProperties | {} | Custom styles for the container of OTP fields. | | inputStyle | React.CSSProperties | {} | Custom styles for OTP input fields. | | errorMsg | string | '' | Error message to display. | | gridContainerProps | GridProps | {} | Props for styling the Grid container for buttons. | | buttonContainerStyle | SxProps | {} | Styling for the container of buttons. | | buttons | Array of button objects | [] | An array of buttons to be displayed at the bottom. | | rootStyle | SxProps | {} | Custom styles for the root element. | | boxContainer | SxProps | {} | Custom styles for the container box. | | subTxtStyle | SxProps | {} | Custom styles for the subtext. | | subTxtFontSize | number or string | '14px' | Font size for the subtext. | | subTxtFontColor | string | '#333' | Font color for the subtext. | | resendColor | string | 'blue' | Color for the "Resend" link. | | resendFontSize | number or string | '14px' | Font size for the "Resend" link. | | resendStyle | React.CSSProperties | {} | Custom styles for the "Resend" link. | | errorFontSize | number or string | '14px' | Font size for error messages. | | errorMsgColor | string | 'red' | Color for error messages. | | timerColor | string | '#333' | Font color for the timer. | | timerStyle | React.CSSProperties | {} | Custom styles for the timer. | | logo | string or ReactNode | '' | An optional logo image or component. | | logoStyle | React.CSSProperties | {} | Styling for the logo. | | logoAltTxt | string | '' | Alternate text for the logo image. | | didNotOTP | boolean | false | hide and show. | | onResend | Function | null | A function is resend OTP fields. | | titleStyle | SxProps<Theme> | {} | Styling for the Title. | | Title | string | | Label for the Title. | | `subLabelStyle` | `SxProps<Theme>` | `{}` | Styling for the Sub Title. | | `subLabel` | `string` | | Label for the Sub Title. | | onsubmitAction | Function | null | A function is onsubmitAction OTP fields. |