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: code samples for component demos #124

Merged
merged 2 commits into from
Sep 14, 2024
Merged

Conversation

WillsterJohnson
Copy link
Contributor

I was looking through the site and couldn't find a guide as to exactly how to use this lib in code, so I just read the source code of the cards on the site.

Then I thought, "this code would be a perfect demo if you trimmed out the logic for the demo app", so I did just that and added it to the homepage.

This was more an exercise for me to get familiar with the library than anything else, but having already written it anyway I figured I'd clean up my work and offer it as a PR.


sample of the new button added to homepage cards:
sample of the new button added to homepage cards

sample of the dialog opened by the above button:
sample of the dialog opened by the above button

wider view of the page, dialog open:
wider view of the page, dialog open

Copy link
Owner

@KTibow KTibow left a comment

Choose a reason for hiding this comment

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

neat, i'll move around the code button and add a copy button soon, but first:

package.json Outdated Show resolved Hide resolved
@KTibow KTibow merged commit d9fbda4 into KTibow:main Sep 14, 2024
2 checks passed
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