
Security News
Node.js TSC Declines to Endorse Feature Bounty Program
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
@skel-ui/react
Advanced tools
Skel UI resolves the challenges of implementing skeletons by eliminating the need to create dedicated loading screens and providing an easier way to manage skeleton states using React Context.
See the comparision here.
Import the CSS file into the root of your application.
import "@skel-ui/react/styles.css";
Now it's time for you to craft your user interface to life!
import * as Skel from "@skel-ui/react";
import Image from "@ui/image";
export default function PostCard() {
const { post, isLoading } = usePost();
return (
<Skel.Root isLoading={isLoading}>
<div className="group w-full max-w-80 p-2.5 bg-white border border-slate-200 rounded-lg overflow-hidden duration-300">
<Skel.Item
as={Image}
src={post?.image}
className="rounded aspect-[800/530] duration-150 loaded:group-hover:scale-110"
/>
<Skel.h1 className="text-xl font-bold mt-4 loading:max-w-48">{post?.title}</Skel.h1>
<Skel.p className="text-sm my-2 loading:h-[3.75rem]">{post?.description}</Skel.p>
</div>
</Skel.Root>
);
}
Now, not only have you designed the skeleton, but you have also done the actual UI. Additionally, the skeleton state for the entire UI is handled in a single place at the <Skel.Root>
.
For full documentation, visit skel-ui.augustin.zip
FAQs
Lightweight and powerful skeleton loading library for React.
The npm package @skel-ui/react receives a total of 0 weekly downloads. As such, @skel-ui/react popularity was classified as not popular.
We found that @skel-ui/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.