adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
13.05k stars 1.13k forks source link

OTP component request #7374

Open thorbde opened 4 days ago

thorbde commented 4 days ago

Provide a general summary of the feature here

Requesting an OTP (one time password) component from React Aria. It's a component type that would greatly benefit from being "standardized" across the web, since multiple different password managers attempt to autofill them.

Example in ShadCN: https://ui.shadcn.com/docs/components/input-otp

Perhaps this can be achieved with current input components, but it would be very beneficial to have an example of how to achieve this in a semantic, accessible way.

๐Ÿค” Expected Behavior?

-

๐Ÿ˜ฏ Current Behavior

-

๐Ÿ’ Possible Solution

No response

๐Ÿ”ฆ Context

-

๐Ÿ’ป Examples

No response

๐Ÿงข Your Company/Team

No response

๐Ÿ•ท Tracking Issue

No response

snowystinger commented 1 day ago

You could probably do something like this https://github.com/adobe/react-spectrum/discussions/5718