Replies: 1 comment 1 reply
-
In the first example, In the second example, Note from that link that render props are available on the component itself, and in the I'm not too familiar with StyleX, but I assume you could do something like this: <div
className={({isInvalid}) =>
stylex.props(
styles.base,
isInvalid && styles.isInvalid,
).className}
/> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
React Aria Components styles a Select that is invalid via the tailwind group classname. I need to style it directly, so I need to key off of the
isInvalid
bool. I'm not doing inline style like this example, (I am using StyleX), but it makes the point for me.I'm trying to understand why deconstructing
isInvalid
off of Select wouldn't work for me. It was always undefined. Very happy to use the renderProps method, but just trying to understand why this didn't work:however this does work
Beta Was this translation helpful? Give feedback.
All reactions