BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/remotionui/motion-wrapper

motion-wrapper

remotionui/motion-wrapper
FreeUtility

Inline wrapper for enter/exit animations (avoids AbsoluteFill overlap)

Install it

npx shadcn@latest add https://remotionui.com/r/motion-wrapper.json

Source

registry/bases/default/lib/motion-wrapper.tsxremotionui.com/r/motion-wrapper.json
1import type { CSSProperties, ReactNode } from "react";
2
3export type MotionWrapperProps = {
4 children: ReactNode;
5 style?: CSSProperties;
6 className?: string;
7 /**
8 * Fill the parent's width instead of shrink-wrapping the child. Needed when
9 * the child sizes itself from its container — a bar, a justified headline —
10 * because an inline-block parent collapses to the content width.
11 */
12 block?: boolean;
13};
14
15/**
16 * Inline wrapper for enter/exit animations.
17 * Use this instead of AbsoluteFill so siblings stack in flex/grid layout.
18 * @see skills/remotion/remotion-create/video-layout.md
19 */
20export const MotionWrapper: React.FC<MotionWrapperProps> = ({
21 children,
22 style,
23 className,
24 block = false,
25}) => (
26 <div
27 className={className}
28 style={{
29 display: block ? "block" : "inline-block",
30 ...(block ? { width: "100%" } : {}),
31 verticalAlign: "top",
32 ...style,
33 }}
34 >
35 {children}
36 </div>
37);

Facts

Registry
remotionui
Type
registry:lib
Access
Free
Files written
0
Licence
MIT
First indexed
2026-08-07
Last confirmed
4 days ago

Go to the source

Docs on remotionui remotionui.com riaz37/remotion-ui on GitHub Raw registry item This item as JSON

More from remotionui

All 127 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-composer-utilsai-composer-utilsremotionuiUtilitiesFreeno deps
audio-viz-utilsaudio-viz-utilsremotionuiUtilitiesFreeno deps
caption-utilscaption-utilsremotionuiUtilitiesFreeno deps
chart-utilschart-utilsremotionuiUtilitiesFreeno deps
code-syntaxcode-syntaxremotionuiUtilitiesFreeno deps
layoutlayoutremotionuiUtilitiesFreeno deps
map-utilsmap-utilsremotionuiUtilitiesFreeno deps
media-utilsmedia-utilsremotionuiUtilitiesFreeno deps
BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex