Skip to content

react-aria radio inline styling #6053

Answered by snowystinger
jake28mc asked this question in Q&A
Discussion options

You must be logged in to vote

Can you say more about why you need the native input to be visible? It'd just look like a native one.

We use a before pseudo element in this example https://react-spectrum.adobe.com/react-aria/RadioGroup.html#example but you could add whatever elements you want as children in order to style your radio. You could make it a circle like we do, or you could make a star or a card, anything you like. There are some more examples a little further down as well, see https://react-spectrum.adobe.com/react-aria/RadioGroup.html#examples

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by snowystinger
Comment options

You must be logged in to vote
2 replies
@snowystinger
Comment options

@jake28mc
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