Skeleton
Grey placeholder blocks, with a shortcut for stacked text lines.
import
import { Skeleton } from '@joshicodes/cock';Placeholder
lines={n} stacks text placeholders; the last one is shorter on purpose.
API
Read out of the component sources at build time, so it matches the version you installed.
Every component also takes class, merged
through tailwind-merge so your utility wins.
Props of Skeleton
| Prop | Type | Default |
|---|---|---|
class | string | — |
lines Convenience for text placeholders: renders N stacked lines. | number | — |