trussworks / react-uswds

USWDS 3.0 components built in React
https://trussworks.github.io/react-uswds/
Apache License 2.0
169 stars 78 forks source link

[feat] The TimePicker component should support 24 hour time formats #2947

Open dakota002 opened 3 weeks ago

dakota002 commented 3 weeks ago

Is your feature request related to a problem? Please describe.

In some fields, like astronomy, a 24 hour time format is more common/useful. The TimePicker component currently only supports the 12 hour format.

Describe the solution you'd like

An optional property on the component, something like format, with options 12 and 24, defaulting to 12.