Installation
Add Component
Copy the code snippet below into you components folder.
Integrate Recipe
Integrate this recipe in to your Panda config.
Usage
If you prefer a closed component composition, check out the snippet below.
Examples
Sizes
Pass the size prop to change the size of the pin input component.
Variants
Pass the variant prop to change the visual style of the pin input component.
One time code
Pass the otp prop to make the pin input component behave like a one-time code input. This helps improve the user experience when entering OTP codes.
Mask
Pass the mask prop to obscure the entered pin code.
Placeholder
Pass the placeholder prop to add a placeholder to the pin input.
Field
Here's an example of how to compose the Field and the PinInput components.
Controlled
Pass the value and onValueChange props to to control the value of the pin input.
Alphanumeric
Pass the type prop to allow the user to enter alphanumeric characters.
Closed Component
Here's how to setup the Pin input for a closed component composition.
And use it like this: