5

Hellou! I have 2 radiobuttons and I want to add a link. I tried to do it the way:

    <RadioButton
      value="/searchByArtistAndName"
      label="Artist and Name"
      style={styles.radioButton}
      containerElement={<Link to="/searchByArtistAndName"/>}
    />

But containerElement is not defined for RadioButton. Any idea?

1 Answer 1

2

You can put any react component in the label property, not just a text string.

<RadioButton
  label={<Link to="/your_route" />}
  ...
/>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.