react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

"milliseconds" granularity for TimeField

Open andrei-zz opened this issue 1 year ago โ€ข 0 comments

Provide a general summary of the feature here

TimeField (and maybe DateField from 'react-aria-components') should support "millisecond" granularity. It should show a DateSegment with a dot and another DateSegment with 3 digits for inputting milliseconds.

๐Ÿค” Expected Behavior?

When passing granularity="millisecond" to <TimeField />, the TimeField should show a DateSegment that has current millisecond value and allow users to edit the millisecond value of the value prop.

๐Ÿ˜ฏ Current Behavior

The defined TypeScript type of the granularity prop doesn't even have "millisecond" option.

๐Ÿ’ Possible Solution

No response

๐Ÿ”ฆ Context

I am working on a time calculator project using combination of date and time input fields from 'react-aria-components'. It would be nice if I can let user edit the millisecond of their input time directly inside the TimeField without showing them a separate field for milliseconds.

๐Ÿ’ป Examples

No response

๐Ÿงข Your Company/Team

No response

๐Ÿ•ท Tracking Issue

No response

andrei-zz avatar May 19 '24 10:05 andrei-zz