Motiq: 80+ Animated UI Components for React & shadcn/ui

80+ animated React components and workflow blocks for product UI, with local TypeScript and Tailwind CSS source.

Motiq is a React component library and shadcn-compatible registry that adds animated product UI to your React and Next.js applications.

It currently includes 80+ UI components, workflow blocks, and one-command packs for AI products, developer tools, collaboration, live data, commerce, security, files, communication, productivity, and motion-heavy UI.

The shadcn CLI copies TypeScript and Tailwind CSS source into your project. Your application owns the state, network requests, model calls, sockets, polling, and workflow data.

Features

  • Editable TypeScript and Tailwind CSS source installed through shadcn.
  • Shared semantic tokens and motion primitives.
  • Explicit "use client" boundaries plus SSR and React Server Component checks.
  • WCAG 2.2 AA accessibility goal with keyboard, focus, and screen-reader patterns.
  • prefers-reduced-motion behavior for animations and offscreen pause for continuous effects.
  • MIT license for personal, commercial, client, and open-source projects.

How To Use Motiq

Initialize shadcn first when your project does not have its configuration and cn() utility.

npx shadcn@latest init

Add a Component

Use the @motiq registry namespace with a current shadcn CLI. No manual Motiq registry entry is required. Registry dependencies are installed with the selected item.

npx shadcn@latest add @motiq/ai-response-stream

Use the Direct Registry URL

Use the direct registry endpoint when you want an explicit Motiq URL or need the fallback documented for older shadcn CLI releases.

npx shadcn@latest add https://motiq.dev/r/ai-response-stream

Install from GitHub

The repository can serve registry items directly.

npx shadcn@latest add RMahammad/motiq/ai-response-stream

Basic Usage: AI Response Stream

import { AiResponseStream } from "@/components/motiq/ai-response-stream";
<AiResponseStream
  segments={segments}
  state={state}
  sources={sources}
  onStop={() => controller.abort()}
  onRetry={() => refetch()}
/>

Config the component

PropTypeDefaultPurpose
segmentsResponseSegment[]RequiredOrdered text, code, and citation segments.
state"streaming" | "stopped" | "complete" | "error"RequiredApplication-owned response lifecycle state.
sourcesStreamSource[]undefinedSources referenced by citation segments.
assistantNamestring"Assistant"Label used in the header and status announcements.
errorMessagestringBuilt-in error textMessage rendered for the error state.
caretbooleantrueStream caret while the response is active.
onStop() => voidundefinedStop action shown during streaming.
onRetry() => voidundefinedRetry action shown after stopped or error states.
onCopy(text: string) => voidundefinedCallback after a successful response copy.
classNamestringundefinedClasses applied to the root component.

Available Workflow Packs

PackMain Components
AI Interface PackAgent Run Timeline, Tool Call Activity, AI Response Stream, Source Citation Rail
Developer Tools PackEnvironment Switcher, Deployment Pipeline, Live Log Stream, API Request Inspector
Collaboration PackLive Presence Stack, Approval Workflow, Comment Thread, Activity Stream
Data Motion PackKPI Number Morph, Data Refresh State, Filter Result Transition, Streaming Data Rows

Featured UI Components

Product AreaComponents
AI productsAI Response Stream, Agent Run Timeline, Tool Call Activity
Developer toolsDeployment Pipeline, Live Log Stream, API Request Inspector
CollaborationLive Presence Stack, Comment Thread, Approval Workflow
Data motionKPI Number Morph, Streaming Data Rows, Data Refresh State
Marketing and creative UIKinetic Emphasis, Sticky Zoom Hero, Aurora Panel
Pointer, scroll, and media motionCursor Comet, Depth Parallax Scene, Compare Reveal

Styling and Local Source

Each registry install writes local component source. Edit the component markup, Tailwind classes, semantic tokens, and motion values in your own codebase. Shared Motiq utilities live under @/lib/motiq, while standard shadcn helpers use @/lib/utils.

Registry items declare their own Motiq utilities, primitives, composed components, and third-party dependencies. The shadcn CLI resolves those dependencies during installation.

Alternatives and Related Resources

RMahammad

RMahammad

Leave a Reply

Your email address will not be published. Required fields are marked *