Description
Provide a general summary of the feature here
I am currently working on several input components based on RAC. According to the target designs these components should have specific border styling if:
- They currently do not have value
- They have not had any value entered
- They have a placeholder provided
It was very easy to achieve this with the Select
component, since it assigns data-placeholder
attribute to SelectValue
, but it turned out that other inputs like TextField
and NumberField
do not have it.
🤔 Expected Behavior?
It would be very beneficial to have a similar behavior for other inputs, so this state can be tracked without interfering with a component value handling logic.
😯 Current Behavior
Select
component (data-placeholder
attr is added to SelectValue
):
TextField
component (data-placeholder
is not present anywhere):
See CodeSandbox for reference:
https://codesandbox.io/p/devbox/react-aria-components-forked-fxyn7j?workspaceId=ws_EKoPVtiibdNe2oieRn7G9L