Kinetic UI
Back to Introduction
Page Transitions

AI Stream Wrapper

A generative AI-style wrapper that makes UI elements appear as if they are being compiled in real-time.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add ai-stream-wrapper

The AIStreamWrapper component wraps standard React children and reveals them using a staggered, glowing "skeleton dissolve" effect — mimicking the experience of AI generating a user interface in real-time (like Vercel's v0 or Claude Artifacts).

It treats each direct child element as a discrete "block" and reveals them sequentially with:

  1. Skeleton shimmer placeholders that glow before the content appears.
  2. A scanning line that sweeps down the page as blocks are compiled.
  3. Edge glow halos that pulse around each element as it materializes.
  4. A status bar showing a typing indicator and a live progress counter.

Live Preview

[!TIP] Click the "Re-generate UI" button to replay the effect!

ai-stream-wrapper-demo

Analytics Overview

Real-time metrics for your SaaS platform.

+12.5%
$48.2k
Revenue
+8.1%
2,847
Users
+23.7%
14.3k
Sessions
+1.2%
3.24%
Conversion

Revenue Over Time

JanFebMarAprMayJunJulAugSepOctNovDec

Recent Activity

Sarah K.upgraded to Pro plan2 min ago
James R.submitted support ticket8 min ago
Maria L.invited 3 team members15 min ago

Installation

npx kinetic-ui-cli@latest add ai-stream-wrapper

[!IMPORTANT] Block Granularity: The wrapper treats each direct child as one "block" to reveal. If you want finer-grained control (e.g., reveal each stat card separately), wrap each one in its own <div> at the top level of the wrapper's children.

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { AiStreamWrapper } from "@/components/creative/ai-stream-wrapper";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { AiStreamWrapper } from "@/components/creative/ai-stream-wrapper";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <AiStreamWrapper
      >
        <div>Content goes here</div>
      </AiStreamWrapper>
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.