SimpleListLoading

Skeleton rows for a pending <SimpleList>. It renders nothing for the first second, so a fast response never flashes a skeleton.

Installation

pnpm dlx shadcn@latest add @chelone/simple-list-loading

Skeleton rows for a pending <SimpleList>. It renders nothing for the first second, so a fast response never flashes a skeleton.

Props

PropTypeDefaultDescription
classNamestring—
hasLeftAvatarOrIconboolean—
hasRightAvatarOrIconboolean—
hasSecondaryTextboolean—
hasTertiaryTextboolean—
nbFakeLinesnumber—Number of placeholder rows. Default 5.