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

Solving issue #18 feat: add skeleton component #26

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

The-x-35
Copy link

Solved issue #18 . Added Skeleton component. Skeleton component to show in a loading state while resolving data or promise. Added choice to show text, image or video skeletons. Added option to change colour and bg-colour of the skeletons. Also added the feature to adjust the width and height of all the components. It also shows a play icon in the video skeleton and a triangle in the image to differ them. We can also adjust the number lines in the text skeleton by editing the height of total text area and single line text height. I have tested the code and it works for all cases.

Copy link
Member

@anwarulislam anwarulislam left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@anwarulislam
Copy link
Member

It would be awesome if users could apply for orders with a prop. For example order="text-image-video" or order="video-image-text"

@anwarulislam anwarulislam changed the base branch from main to next August 13, 2024 11:48
@anwarulislam anwarulislam merged commit 55e7b7a into hoppscotch:next Aug 13, 2024
@The-x-35
Copy link
Author

I thought users could re-use the skeleton component as many times they wanted in whatever order with their desired result, so I didn't add the order, but yeah it looks cool with order.

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