React
Getting Started
Integrate skeletons into your project quickly and easily using Skel UI in minutes.
Install package
Install Skel UI into your project via command line.
Import CSS
Import the CSS file into the root of your application.
Implement Skel UI
Consider a PostCard component that shows a spinner while the data is being fetched.
Let's replace the spinner loading with skeleton loading. To accomplish this, just follow two steps:
- Replace the ternary operator with
<Skel.Root>
. - Substitute your HTML elements with Skel UI elements (e.g.,
h1
becomesSkel.h1
).