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

Button component #310

Merged
merged 3 commits into from
Feb 10, 2024
Merged

Button component #310

merged 3 commits into from
Feb 10, 2024

Conversation

AbdiYus
Copy link
Contributor

@AbdiYus AbdiYus commented Feb 10, 2024

What has changed? ✨

I've added a general use button component for the website. It can dynamicly fit to it's parent size or auto size to the text inside.
image
Text sizing auto
image
Text sizing to it's parent

How did you solve/implement it? 🧠

The component needs 2 arguments, which is the text and link. The third which is optional is the sizing. The implmentation of the code is quite straight forward.

Here is how you can use the component:

<Button text='PÅMELDING' link='/' adaptiv={true}/> // adatptiv width is true 

<Button text='PÅMELDING' link='/' adaptiv={false}/> // you could spesify that it's false
<Button text='PÅMELDING' link='/' /> // or not include it 

@AbdiYus AbdiYus requested a review from Mosazghi as a code owner February 10, 2024 14:08
Copy link

vercel bot commented Feb 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
startgjovik-website ✅ Ready (Inspect) Visit Preview Feb 10, 2024 2:08pm

@AbdiYus AbdiYus mentioned this pull request Feb 10, 2024
@Mosazghi Mosazghi added the component Task is to create a component label Feb 10, 2024
@Mosazghi Mosazghi linked an issue Feb 10, 2024 that may be closed by this pull request
@Mosazghi Mosazghi removed a link to an issue Feb 10, 2024
Copy link
Contributor

@Mosazghi Mosazghi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mosazghi Mosazghi merged commit 5f7407c into development Feb 10, 2024
4 checks passed
@Mosazghi Mosazghi deleted the buttonComponent branch February 10, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component Task is to create a component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants