Getting started

Components

A guide to installing a component, customizing its look and using it in your page.

What is a MotionUIKit component?

A component is one animated piece of UI you drop into a page: a button, a background, a text or image effect. It installs as code in your project, and every visual choice in it is a prop you can change.

  • Plain React code: written into your project, not hidden in a package. Edit it however you like.
  • Fully customizable: colors, text, fonts, sizes and timing are all props.
  • Live customizer: try every prop in the preview before you install.
  • Variants: ready-made looks, plus your own saved ones.

How do I get a component?

  1. Sign in. Free components need an account too, and Pro components need a paid plan.
  2. Open the Components page and pick a component.
  3. Customize its look in the preview, if you like. See Customizing a component.
  4. Click Get this Component and choose an option:
OptionWhat it does
CLIWrites the component into your project and installs its packages. Recommended.
Copy codeCopies the source to paste into your project. Only for one-file components.
AI PromptA prompt for Lovable, v0, Bolt, Cursor or Claude that installs and renders it.
MCPA plugin for AI editors. Coming soon.

Installation

Before you start, you need:

  • A React project: Next.js, React + Vite or Astro.
  • Node.js 20 or later.
  • Tailwind CSS v4. If your project doesn't have it, or is on v3, the CLI offers to set it up. See Project setup.

Step 1: Run add in your project's folder:

npx motionuikit@latest add meteor-grid

Step 2: Answer the setup questions. Only the first run asks them:

  • Which app? The app to install into. Asked only at a monorepo's root.
  • Framework: react (default).
  • TypeScript? Yes, or No in a JavaScript project, which installs .jsx files.
  • Set up a monorepo? No (default). Asked only in a workspace.
  • Components import alias: press Enter for @/components/motionuikit.
  • Set up the @/ alias? Yes (default). Asked only when it's missing.
  • Set up Tailwind v4? Yes (default). Asked only when it's missing.
  • API key: paste it from Account settings → API, or leave it blank to add later.

Your answers are saved in motionuikit.config.json, and the key in .env. Add --yes to init to accept every default. See CLI for every option.

Step 3: Use it in your page. The component is written to components/motionuikit/ui/ (under src/ if your project has one):

app/page.tsx
import MeteorGrid from '@/components/motionuikit/ui/meteor-grid'

export default function Page() {
  return (
    <div className='relative h-screen'>
      <MeteorGrid />
    </div>
  )
}

Copy code

Step 1: Click Copy code in the dialog. The component's source is copied to your clipboard.

Step 2: Paste it into a new file, for example components/motionuikit/ui/meteor-grid.tsx.

Step 3: Install its npm packages. The dialog names them. For meteor-grid:

pnpm add @react-three/fiber @react-three/postprocessing cn postprocessing three

Step 4: Import it like any other component.

  • Copy code is offered only for components that come as one file. For a component made of several files, use the CLI or an AI prompt, which put every file in place.
  • The code is TypeScript. In a JavaScript project, use the CLI, which converts it for you.

AI prompt

Step 1: Choose your stack in the dialog: Next.js, React + Vite or Astro, and TypeScript or JavaScript.

Step 2: Copy the prompt and paste it into Lovable, v0, Bolt, Cursor or Claude.

The AI tool installs the component with the CLI and renders it on your main page, with the look you picked in the customizer.

  • The prompt contains your API key. Share it only with tools you trust.
  • Every install the prompt runs counts against your daily limit, so don't run it again once it has worked.

How do I customize a component?

Each component's page has a live preview with a Customize panel beside it. Every change shows in the preview straight away.

  • Controls: grouped into Colors, Content, Shape & motion and Options. Some components also have an Advanced section, collapsed until you open it, for fine-tuning.
  • Undo and redo: the arrows at the top of the panel, or ⌘Z and ⌘⇧Z (Ctrl on Windows).
  • Reset: a changed row shows a reset button that puts it back. The panel's reset button puts every row back at once.
  • Full screen: the button at the top left of the preview fills the window with the preview and the panel. Press Esc to leave.
  • Fonts: a Font field shows the font in the preview, but doesn't install it. See Fonts to load it in your project.

Variants

The picker at the top of the panel lists the component's own variants: ready-made looks, such as meteor-grid's Ice and Toxic. Once you change anything, the picker reads Custom.

Your changes are kept in this browser while you work, so a reload or a closed tab doesn't lose them. They are kept for 7 days, for the 20 components you changed most recently. A file you upload is the exception: until you save it in a variant, a reload removes it.

Saving your own variants

Signed in, Save keeps your look on your account as a variant with its own name. It then appears in the picker under Your variants, on any device. From the picker you can:

  • Save changes to a variant of yours, or Save as new to keep both.
  • Rename or Delete it.
  • Share it: anyone with the link opens the component with your look, and can save a copy to their own account.

Using your own images and videos

An image or video field takes an https link, or a file you upload from your computer to try in the preview:

FieldFile typesLargest file
ImagePNG, JPEG, WebP, GIF, AVIF20 MB
VideoMP4, WebM, MOV, M4V, OGG10 MB

MP4 (H.264) and WebM are the safest: whether a MOV, M4V or OGG video plays depends on your browser.

In a list, such as video-card-reel's Clips, each row has its own upload button. Select an item's name for its other fields, such as a clip's poster and its video for phones.

Files from your computer stay in your browser

An uploaded file is never sent to us: a variant you save keeps it in this browser only. Everywhere else (other devices, share links, the code you copy or install) a video field goes back to the video it replaced, and an image field to the component's own image. An image uploaded to a list is left empty there. Put the file online and paste its link to keep it in the variant.

How do I use my variant in my project?

There are two ways to bring a variant into your code. Pick whichever suits you.

1. Pass it as props

The CLI and Copy code install the component with its default variant. Under them, the dialog's How to use panel shows the props for the variant you picked, ready to copy:

<MeteorGrid backgroundColor='#03060a' blockColor='#262b33' />

Only the props that differ from the default are written. With no props, the component looks like its default variant.

2. Use the AI prompt

The prompt includes the props of the variant you picked, so the AI tool renders the component with that variant.

However you install it, the component is plain React code in your project: change its props, or edit its code.

How do I remove a component?

npx motionuikit@latest remove meteor-grid

Works only with our folder structure

remove deletes the component's files from the folders add installs them in. If you moved or renamed them, or pasted the code somewhere else with Copy code, it can't find them. Delete those files yourself.

Usage

Every time a component's code is delivered to you, it counts one use of your daily limit for components. Components, sections and templates each have their own daily limit, so installing a component never uses a section's.

What you doCounts
add with the CLIOne use per component, every time
add again, a second variant, or a free componentOne use each
Copy code on the websiteOne use, every time you click it
An AI promptOne use for each install it runs
--dry-run, variant-list, list, searchNothing
Customizing, previewing, saving or sharing variantsNothing
Copying the props from How to useNothing
  • After every add, the CLI prints what is left, for example 6 of 10 component installs left today.
  • Limits reset every day at 00:00 UTC. When you reach one, nothing is delivered and the attempt isn't counted.
  • On a Lifetime plan, nothing is counted.
  • Check your usage in Account settings → Usage, or with remaining-usage.

See Plans & limits for each plan's limits.

Frequently asked questions

On this page