Abstraction for Display Button #26
jasonchristopher21
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all! In my recent PR that has been merged [#25], I added a component called
DisplayButton.jsx
, which contains an abstraction for generating huge buttons in each section such as those in the Figma prototype.To use the button, you can import the
DisplayButton
component fromindex.js
in thecomponents
directory.The
DisplayButton
component has three properties:link
: Specifies the link when the button is clicked. e.g.link="/#contact"
text
: Specifies the placeholder text in the button. e.g.text="submit"
arrow
: Specifies whether the arrow variant.arrow="right"
specifies a button with right arrowarrow="left"
specifies a button with left arrowarrow="none"
or not specifying thearrow
property specifies a button with no arrowsDetails on the three arrow variants are as follows:
Feel free to add any modification or suggestions. Hope you may find this abstraction helpful in the components that you will be working on in the future. Happy coding! 😄
Beta Was this translation helpful? Give feedback.
All reactions