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

[explorer] Add link component #5395

Merged
merged 2 commits into from
Oct 20, 2022
Merged

Conversation

Jordan-Mysten
Copy link
Contributor

This adds a new "link" component. The difference between "Link" and "Button" is about visual presentation, not about functionality. Both Link and Button can be used as a button or a link under the hood (they use ButtonOrLink, which decides what to render based on the provided props).

I added two initial variants:

  • mono - The variant used for addresses, objects, transaction IDs, etc. These all seem to be consistently styled.
  • text - This is based on the figma "button / text" component.

Screen Shot 2022-10-19 at 1 05 09 PM

@Jordan-Mysten Jordan-Mysten merged commit 11b99a7 into main Oct 20, 2022
@Jordan-Mysten Jordan-Mysten deleted the jordan--button-text-variant branch October 20, 2022 16:48
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.

4 participants