Pricing
Get Started
  • Introduction
  • Installation
  • MCP Server
  • Saved
Site
  • Builder (Beta)
  • Pricing
  • Roadmap
  • Affiliates
Browse
  • All Components25 New
Text32
Reveal & Decode11
  • Blur Highlight
  • Cipher Reveal
  • Ghost Type
  • Glyph Lottery
  • Luminous Type
  • Signal Type
  • Smoke Type
  • Staggered Text
  • Text Morph
  • Typographic Wall
  • Vapor Type
Kinetic & 3D11
  • 3D Letter Swap
  • 3D Text Reveal
  • Bending Marquee
  • Mesh Lettering
  • Orbital Type
  • Ribbon Type
  • Rising Ink
  • Speeding Text
  • Text Cube
  • Text Path
  • Wave Lettering
Interactive & Physics10
  • ASCII Ripple
  • Domino Lettering
  • Elastic Lettering
  • Glitch Text
  • Gravity Letters
  • Particle Text
  • Shatter Type
  • Spring Lettering
  • Stipple Type
  • Text Scatter
Backgrounds106
Gradients & Fluids21
  • Aura Blob
  • Aurora Blur
  • Chroma Waves
  • Cloud Atlas
  • Color Loops
  • Glowing Ridges
  • Gradient Bars
  • Gradient Blob
  • Grain Wave
  • Liquid Bars
  • Minimal Ripple
  • Radial Liquid
  • Rubber Fluid
  • Satin Ridges
  • Shader Waves
  • Silk Waves
  • Simple Swirl
  • Spectral Clouds
  • Stipple GradientNew
  • Swirl Blend
  • Watercolor
Light & Beams14
  • Aurora Beam
  • Axial Beam
  • Blurred Rays
  • Chroma Blinds
  • Dappled Light
  • Eclipse
  • Falling Rays
  • Flame Paths
  • Horizon Bloom
  • Light Droplets
  • Neon Reveal
  • Nexus Rays
  • Rolling Blinds
  • Shadow Bars
Lines & Filaments12
  • Concentric Tides
  • Glowing Wave
  • Interference Ribbons
  • Liquid Lines
  • Long Exposure
  • Luminous Filaments
  • Neural Flash
  • Neural Float
  • Rising Lines
  • Spiral Funnel
  • Synaptic Shift
  • Twilight Lines
Dots & Pixels22
  • Blinking Dots
  • Blinking Squares
  • Chroma Current
  • Circuit FlashNew
  • Cursor Wave
  • Dither Wave
  • Dot Shift
  • Dotted WavesNew
  • Glue Dots
  • Grid Rise
  • Halftone Vortex
  • Halftone Wave
  • Hexagonal Vault
  • Mosaic
  • Mosaic Waves
  • Pixel Rain
  • Square Matrix
  • Squares Terminal
  • Squircle Shift
  • Tech Wall
  • Thinking Dots
  • Voxel Arc
Particles & Space11
  • Astral Shell
  • Binary Orbits
  • Contour Tide
  • Fading Stars
  • Glimmer Wrap
  • Grain MassNew
  • Ring Field
  • Rising Particles
  • Rotating Stars
  • Spectral Drape
  • Star Burst
Horizons & Tunnels10
  • Glitter Warp
  • Landscape
  • Lightspeed
  • Neural Tunnel
  • Perspective Grid
  • Ravine
  • Retro Lines
  • Star Swipe
  • Vortex
  • Warp Twister
ASCII & Glyphs9
  • ASCII StreamNew
  • ASCII Tiles
  • Ascii Waves
  • Glyph Ember
  • Glyph Orb
  • Glyph Sonar
  • Glyph Tide
  • Liquid Ascii
  • Terminal Rain
Glass & Chrome7
  • Glass CoinsNew
  • Glass Flow
  • Glass KeysNew
  • Glass Tiles
  • Metallic Swirl
  • Prismatic Slats
  • Spectral TilesNew
Images & Galleries52
Galleries & Carousels33
  • Album Rail
  • Bend Gallery
  • Circle Gallery
  • Circle Stack
  • Circles
  • Concave Carousel
  • Constellation Gallery
  • Contact Sheet
  • Depth Ribbon
  • Dolly Gallery
  • Draggable Grid
  • Elastic Reel
  • Expanding Grid
  • Gradient Carousel
  • Helix Gallery
  • Infinite Gallery
  • Inverted Dome
  • Iris Gallery
  • Lenticular Carousel
  • Liquid CirclesNew
  • Momentum Ring
  • Orbit Reel
  • Parallax Carousel
  • Passage Gallery
  • Prism Carousel
  • Reel Gallery
  • Rotating Cards
  • Scroll Bend
  • Skewed Carousel
  • Spin Shutter
  • Tilted Tiles
  • Tumble Carousel
  • Twisting Gallery
Image Effects14
  • Comparison Slider
  • Depth Image
  • Ember Reveal
  • Glass Reveal
  • Hover Preview
  • Liquid Swap
  • Loupe Image
  • Particle Image
  • Particle Morph
  • Pixel Reveal
  • Pixel Sculpt
  • Pixelate Hover
  • Pond Image
  • Shader Reveal
Scroll Stories5
  • Frame Scrub
  • Scroll Mask
  • Scroll Portal
  • Scroll Stack
  • Tile Reveal
Interface30
Cards & Widgets15
  • Animated ListUpdated
  • Arc ListNew
  • Card Spread
  • Chroma Card
  • Click Stack
  • Credit Card
  • Depth Card
  • Frame Border
  • Modal Cards
  • Parallax Cards
  • Parallax Pills
  • Preloader
  • Shader Card
  • SignatureNew
  • Warped Card
Product Mockups8
  • Browser WindowNew
  • Center Flow
  • Code MorphNew
  • Device
  • Magic Transform
  • PipelineNew
  • Spin ViewerNew
  • Terminal ReplayNew
Data & Media7
  • Globe
  • Instrument DialNew
  • Particle ChartNew
  • Signal MapNew
  • Simple Graph
  • Story PlayerNew
  • Waveform PlayerNew
3D & Tactile16
Orbs & Shapes9
  • Agentic Ball
  • AI Blob
  • Black Hole
  • Chrome Orbit
  • Fog Sphere
  • Photon Knot
  • Portal
  • Specter Orb
  • Wireframe Ball
Tactile & Physics7
  • Elastic Sticker
  • KeycapsNew
  • Page Flip
  • Pin ScreenNew
  • Receipt PrinterNew
  • Scratch CardNew
  • Tumble Wall
Cursors19
Custom Cursors7
  • Custom Cursor
  • Drafting Cursor
  • Glass Cursor
  • Gyroscope Cursor
  • Label Orbit
  • Smooth Cursor
  • User Cursor
Cursor Trails12
  • Arc Cursor
  • Ascii Cursor
  • Celebration Cursor
  • Chroma Halo
  • Dither Cursor
  • Glyph Stream
  • Pigment Trail
  • Pixel Magnet
  • Ribbon Trail
  • Snapshot Trail
  • Stardust Cursor
  • Tessera Trail
  1. Docs
  2. Components
  3. Interface
  4. Product Mockups
  5. Code Morph

Animated components, blocks, and templates for React. Pay once, ship stunning pages forever.

pro@reactbits.dev

Site

HomeBuilder (Beta)PricingTestimonialsFAQsRoadmapChangelogFree Components

Docs

IntroductionInstallationMCP ServerComponentsBlocksTemplates

Resources

AboutUse casesComparisonsAlternativesFor AI agents

Legal & Account

LoginAffiliateLicensePrivacyContact

© 2026 pro.reactbits.dev. All rights reserved.

Code Morph

A code window that morphs between snippets, token by token

code-morph-tw

Customize

Accent
Window
Text
Font Size
13.0px
Line Height
1.70
Radius
16px
Duration
800ms
Interval
4200ms

Props

28
NameTypeDefaultDescription
stepsCodeMorphStep[]counter exampleThe snippets to morph between. Each step is { code, label?, file?, language?, highlight? }. label names the tab, file is shown in the window title, and highlight focuses lines, as an array of line numbers or a string like "2-4, 7".
language"tsx" | "python" | "json" | "css" | "bash""tsx"Language used to highlight steps that do not set their own. tsx covers JavaScript, TypeScript and JSX.
chrome"tabs" | "window" | "none""tabs"Tabs shows a clickable tab per step, window shows the dots and the file name, none removes the title bar.
frame"solid" | "inset""inset"Solid draws one surface. Inset puts the title bar on a tinted frame and sets the code in its own rounded panel, with corners concentric to the frame.
dots"mono" | "color""mono"Window dots in quiet grey, or the classic red, yellow and green.
theme"auto" | "light" | "dark""auto"Auto picks a light or dark window from the colour behind it, so it follows your site theme.
accentColorstringtheme violetColour of keywords, the active tab and the focus band.
windowColorstringfrom themeBackground of the window.
textColorstringfrom themeColour of plain code.
fontFamilystringsystem monospaceFont of the code. Uses your --font-mono variable when it exists.
fontSizenumber13Font size in pixels.
lineHeightnumber1.7Line height as a multiple of the font size.
radiusnumber16Corner radius of the window in pixels.
heightnumber | "auto""auto"Auto sizes the window to the longest step, so it never jumps between steps.
lineNumbersbooleantrueShows line numbers in a gutter.
focusbooleantrueDims the lines outside a step's highlight and marks the highlighted lines with a band.
fitbooleantrueScales the code down to fit narrow containers. When off, long lines fade out at the right edge.
durationnumber800Length of the morph in milliseconds.
intervalnumber4200Milliseconds each step stays on screen while autoplaying.
autoplaybooleantrueAdvances through the steps on its own while the window is in view.
loopbooleantrueReturns to the first step after the last.
pauseOnHoverbooleantrueHolds the current step while the pointer is over the window.
copyablebooleantrueShows a button that copies the current step's code.
defaultStepnumber0Step shown first.
onStepChange(index: number) => void—Called whenever the window morphs to another step.
ref{ next, prev, goTo, play, pause }—Controls the steps, for example to sync them with your own copy.
classNamestring—Classes for the window.
styleCSSProperties—Inline styles for the window.
stepsCodeMorphStep[]

The snippets to morph between. Each step is { code, label?, file?, language?, highlight? }. label names the tab, file is shown in the window title, and highlight focuses lines, as an array of line numbers or a string like "2-4, 7".

Defaultcounter example
language"tsx" | "python" | "json" | "css" | "bash"

Language used to highlight steps that do not set their own. tsx covers JavaScript, TypeScript and JSX.

Default"tsx"
chrome"tabs" | "window" | "none"

Tabs shows a clickable tab per step, window shows the dots and the file name, none removes the title bar.

Default"tabs"
frame"solid" | "inset"

Solid draws one surface. Inset puts the title bar on a tinted frame and sets the code in its own rounded panel, with corners concentric to the frame.

Default"inset"
dots"mono" | "color"

Window dots in quiet grey, or the classic red, yellow and green.

Default"mono"
theme"auto" | "light" | "dark"

Auto picks a light or dark window from the colour behind it, so it follows your site theme.

Default"auto"
accentColorstring

Colour of keywords, the active tab and the focus band.

Defaulttheme violet
windowColorstring

Background of the window.

Defaultfrom theme
textColorstring

Colour of plain code.

Defaultfrom theme
fontFamilystring

Font of the code. Uses your --font-mono variable when it exists.

Defaultsystem monospace
fontSizenumber

Font size in pixels.

Default13
lineHeightnumber

Line height as a multiple of the font size.

Default1.7
radiusnumber

Corner radius of the window in pixels.

Default16
heightnumber | "auto"

Auto sizes the window to the longest step, so it never jumps between steps.

Default"auto"
lineNumbersboolean

Shows line numbers in a gutter.

Defaulttrue
focusboolean

Dims the lines outside a step's highlight and marks the highlighted lines with a band.

Defaulttrue
fitboolean

Scales the code down to fit narrow containers. When off, long lines fade out at the right edge.

Defaulttrue
durationnumber

Length of the morph in milliseconds.

Default800
intervalnumber

Milliseconds each step stays on screen while autoplaying.

Default4200
autoplayboolean

Advances through the steps on its own while the window is in view.

Defaulttrue
loopboolean

Returns to the first step after the last.

Defaulttrue
pauseOnHoverboolean

Holds the current step while the pointer is over the window.

Defaulttrue
copyableboolean

Shows a button that copies the current step's code.

Defaulttrue
defaultStepnumber

Step shown first.

Default0
onStepChange(index: number) => void

Called whenever the window morphs to another step.

Default—
ref{ next, prev, goTo, play, pause }

Controls the steps, for example to sync them with your own copy.

Default—
classNamestring

Classes for the window.

Default—
styleCSSProperties

Inline styles for the window.

Default—