Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow classname prop on <Link> #966

Closed
ghost opened this issue Feb 3, 2017 · 2 comments
Closed

Allow classname prop on <Link> #966

ghost opened this issue Feb 3, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 3, 2017

It looks like this isn't currently possible? Wouldn't it make sense though, since it directly renders as an <a>, to be able to style it?

@ghost
Copy link
Author

ghost commented Feb 3, 2017

Okay, I figured you can put an <a/> tag inside the <Link href="/"><a className="test">Test</a><Link> and it will consume it and render it as a single <a href="/" class="test">Test</a>.

@stoplion
Copy link

stoplion commented Aug 5, 2017

Would be nicer if Link could take a className tho..

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant