Skip to content

Styling react router link with Themed. Can i use different variants? #2114

Answered by lachlanjc
jikol1906 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, great question! I was going to say we don't support multiple link variants right now, but I pulled up the code & I think we actually do, which is news to me! They go under the links key of your theme, not under styles.a.

  • We don't recommend using Themed to style your app unless necessary. Using either the components or JSX pragma are both nicer APIs & support more features like variants. Themed gives you the styles styling on app UI, but that set is designed for text content, such as MDX documentation or blog posts or content from a CMS.
  • We have both Link & NavLink components out of the box, but you can pass variant="secondary" or wrap that in your own SecondaryLink etc components to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jikol1906
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