@react-cmpt/rc-skeleton
v0.1.2
Published
Provide a placeholder while you wait for content to load
Downloads
3
Maintainers
Readme
rc-skeleton
Provide a placeholder while you wait for content to load, or to visualise content that doesn't exist yet.
usage
yarn add @react-cmpt/rc-skeleton
import Skelenton from "@react-cmpt/rc-skeleton";
const Demo = () => {
return (
<Skelenton loading={loading} emptyData={data == null}>
<div>content</div>
</Skelenton>
);
};