Skip to content

feat(time-field): add emptyStateLabel and getValueOnBlur props - #595

Open
chrisrolfe198 wants to merge 1 commit into
mainfrom
feat/add-empty-state-to-time-field
Open

feat(time-field): add emptyStateLabel and getValueOnBlur props#595
chrisrolfe198 wants to merge 1 commit into
mainfrom
feat/add-empty-state-to-time-field

Conversation

@chrisrolfe198

Copy link
Copy Markdown
Contributor

What

Lets TimeField show sighted-only placeholder text (e.g. "now") while empty and unfocused, seed the field with the current time on focus, and let consumers decide via getValueOnBlur whether an edited value should revert back to empty on blur. Value state now goes through useControlledState so this works for both controlled and uncontrolled usage (e.g. React Hook Form).

Fixed 2 dependencies from react-aria-components to specific versions.

Media

See the storybook, 2 new examples have been added

Why

How

@pkg-pr-new

pkg-pr-new Bot commented Aug 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@freenow/wave@595

commit: 0152f17

Lets TimeField show sighted-only placeholder text (e.g. "now") while empty
and unfocused, seed the field with the current time on focus, and let
consumers decide via getValueOnBlur whether an edited value should revert
back to empty on blur. Value state now goes through useControlledState so
this works for both controlled and uncontrolled usage (e.g. React Hook Form).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chrisrolfe198
chrisrolfe198 force-pushed the feat/add-empty-state-to-time-field branch from 832c239 to 0152f17 Compare August 26, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants