Open dhavalveera opened 3 months ago
Run & review this pull request in StackBlitz Codeflow.
Latest commit: 031c7b4d20c6eff3a9ffd4aa91bb4b4cd7548b74
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
flowbite-react | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 31, 2024 11:51am |
flowbite-react-storybook | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 31, 2024 11:51am |
The update introduces a new Skeleton
component in the Flowbite library, enhancing UI design with loading indicators that mimic the content being loaded. This includes various shapes and forms like cards, images, and lists, alongside customization options for their appearance, significantly improving the user experience during content loading.
Files | Change Summary |
---|---|
apps/web/content/docs/components/skeleton.mdx |
Introduced documentation for the new Skeleton component in the Flowbite library. |
apps/web/data/components.tsx apps/web/data/docs-sidebar.ts |
Added Skeleton component to components list and docs sidebar. |
apps/web/examples/index.ts apps/web/examples/skeleton/index.ts |
Exported skeleton component examples. |
packages/ui/src/components/Skeleton/... (Skeleton.spec.tsx, Skeleton.stories.tsx, Skeleton.tsx, SkeletonCard.tsx, SkeletonImage.tsx, SkeletonList.tsx, SkeletonTestimonial.tsx, SkeletonVideo.tsx, index.ts, theme.ts) |
Introduced and implemented the Skeleton component and its variations, including tests and stories. |
packages/ui/src/components/Flowbite/FlowbiteTheme.ts packages/ui/src/index.ts packages/ui/src/theme.ts |
Added FlowbiteSkeletonTheme interface and exported the Skeleton component and theme. |
Skeleton
component, along with its comprehensive documentation and theming capabilities, directly addresses the issue's objectives by enhancing usability, allowing for effective customization, and improving the developer experience with clear references for the theme object.In the land of code where the bits do hop,
ASkeleton
dances, never does it stop.
Mimicking content, it plays its part,
Loading placeholders, an artful start.
🐰 With every shape and form it takes,
A smoother web, this rabbit makes.
Celebrate the change, for progress we cheer, 🎉
WithSkeleton
components, the future is here!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@SutuSebastian - can you please review?
@SutuSebastian - can you please review?
This Pull Request introduces Skeleton Loading components to Flowbite-React, leveraging the Flowbite package. Skeleton Loading provides users with a seamless loading experience by displaying placeholders while content is being fetched or loaded. This enhancement includes various Skeleton components such as Skeleton, Skeleton Video, Skeleton Image, Skeleton Card, Skeleton List, and Skeleton Testimonial, ensuring a consistent loading UI across different types of content. With these additions, users will enjoy smoother transitions and improved usability, enhancing the overall user experience of Flowbite-React applications.
Pardon me for the variable names, please suggest a better naming convention.
Summary by CodeRabbit
Skeleton
component in the Flowbite library for creating loading indicators, mimicking the content being loaded such as text, images, and videos. This includes variants like Default, Circular, Rectangular, and Rounded.