React UI Utilities
Explore Puzzle UI utilities for component previews, rendering strategies, scroll locking, and transitions in React applications.
UI utilities support component composition and rendering behavior rather than representing a particular content category. The available utilities document preview rendering, SSR and deferred strategies, scroll locking, and transitions.
When to use UI utilities
Use a utility when its documented behavior matches a specific rendering or interaction need. Check the rendering guide before adding client-only boundaries, and use scroll locking only when an overlay or equivalent interaction requires it.
Components
Preview
Present runnable component examples alongside their code.
Rendering Strategies
Preserve SSR, defer client loading, or render static content.
Scroll Lock
Prevent background scrolling while an overlay is active.
Transition
Animate mounting and unmounting with transition templates.
Start here
- Rendering Strategies for SSR, deferred, and static rendering patterns.
- Scroll Lock for controlling background scrolling.
- Preview for runnable documentation examples.
See the UI overview for package setup and the Pieces integration guide for composed sections.
React Text and Body Typography
Apply theme typography to React paragraphs, labels, and supporting text. Explore Text roles, semantic elements, body copy examples, and TypeScript props.
React Component Preview and Code Examples
Preview React components in isolated iframes with source code and device-size controls. Learn Preview sizing, live examples, code display, and props.