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

feat: add target to Link #259

Closed
wants to merge 1 commit into from
Closed

feat: add target to Link #259

wants to merge 1 commit into from

Conversation

adoyle0
Copy link
Contributor

@adoyle0 adoyle0 commented Sep 12, 2024

Adds target attribute to the <a> tag created by Link.

I wanted this for my app and noticed it didn't exist (among other attributes) so I thought I'd just add it :)

@luoxiaozero
Copy link
Collaborator

You can add it via the attr: syntax, for example:

<Link href="http://example.com" attr:target="_blank">
     "This is a link"
</Link>

@adoyle0
Copy link
Contributor Author

adoyle0 commented Sep 12, 2024

Ah that's what I was looking for. I didn't realize it existed

@adoyle0 adoyle0 closed this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants