Skip to content

Example of separating triggers, labels and messages from core fields? #4752

Answered by LFDanLu
binaryartifex asked this question in Q&A
Discussion options

You must be logged in to vote

yeah unfortunately with react-aria-components ive run into an issue where, in particular with textfields, the input fields have the hover/focus states and now i can't figure out how to style a parent wrapper based on the data attributes of the input child as the textfield doesn't possess the same classname renderprops as say, button does.

Hopefully when #4616 is release, the above should be easier for you to do since the parent wrapper of the RAC Select will have things like isFocused available.

As for the issue with select where the collection children may not be the immediate child of the component calling useSelectState, you can checkout how we handled this in RAC Select here. We ins…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@binaryartifex
Comment options

@LFDanLu
Comment options

LFDanLu Jul 14, 2023
Collaborator

Answer selected by binaryartifex
@binaryartifex
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants