Creators to follow

N
nadia_ux44 followers
T
tomasz_forms44 followers
D
david_ops41 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

FE
felix_pixels
7 months ago•
UI / UX

Auto-generate skeleton loaders from any layout

Claude Sonnet 4.6
code output
#skeleton
#loading-states
#react
#typescript
Views
6.2K
Copies
2.1K
Likes
997
Comments
0
Copy rate
34.0%

Prompt

Write a TypeScript utility that generates a skeleton loader component for any given layout. The user provides a layout descriptor (or a live DOM node) and the tool produces a matching React skeleton component.

Target: [framework] with [styling_solution]. Skeletons should:
- Match parent layout dimensions exactly
- Use shimmer animation via CSS (not JS)
- Support shape primitives: rect, circle, text lines, image, avatar
- Accept density options (compact, normal, comfortable)
- Be accessible: aria-busy, aria-live="polite", hide from screen readers where appropriate
- Work with CSS variables for theme switching

Include a generator function that takes a schema and outputs JSX, plus the base primitives.

Customise this prompt

Fill in 2 variables to personalise this prompt

Preview
Write a TypeScript utility that generates a skeleton loader component for any given layout. The user provides a layout descriptor (or a live DOM node) and the tool produces a matching React skeleton component. Target: [framework] with [styling_solution]. Skeletons should: - Match parent layout dimensions exactly - Use shimmer animation via CSS (not JS) - Support shape primitives: rect, circle, text lines, image, avatar - Accept density options (compact, normal, comfortable) - Be accessible: aria-busy, aria-live="polite", hide from screen readers where appropriate - Work with CSS variables for theme switching Include a generator function that takes a schema and outputs JSX, plus the base primitives.

Example output

Related prompts

Responsive stats dashboard grid from screenshot descriptionby @priya_design
UI / UX
Responsive pricing card component with toggle animationby @felix_pixels
UI / UX
Competitive UX teardown comparing two products side by sideby @alex_ui
UI / UX
Keyboard-only accessibility test script with checklistby @nadia_ux
UI / UX