MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / Skeleton

Function Skeleton

packages/frontend/src/ui/skeleton.tsx:4–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import {type Component} from 'solid-js'
3
4export const Skeleton: Component = () => {
5 const nDots = createPolled((p: number = 0) => (p === 3 ? 1 : ++p), 800)
6
7 return (
8 <div class="center-child w-full h-full bg-gray-200 text-gray-600">
9 Loading{Array.from({length: nDots()}, () => '.')}
10 </div>
11 )
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…