saturation/uisaturation/ui
DocsComponentsBlocksPagesEmails
GitHub

Sections

IntroductionComponentsInstallationMCPThemingDesign

Components

Components

General

AvatarBadgeButtonKbdProgressSeparatorSkeletonSpin ResolveSpinnerSync ButtonTypography

Forms & Inputs

Address LookupCalendar PickerCheckboxComboboxDate PickerEmoji PickerFavicon SearchFieldInputInput GroupInput OTPRadio GroupSelectSliderSwitchTextareaToggleToggle Group

Data Display

AccordionAlertCardChartComparison SliderCredit CardData TableEmptyItemSaturation Credit CardTableTree

Navigation

BreadcrumbCommandMenubarNavigation MenuPaginationTabs

Overlays

CollapsibleContext MenuDialogDropdown MenuSheet

Layout

Button GroupFont ProviderWizard Split Layout

Feedback

Sonner

Animation & Effects

Animated GroupAnimated ListAnimated NumberBeamBlur FadeBorder TrailGlow EffectLiquid MetalLoading StateParallaxPixelProgressive BlurRippleSpotlightText EffectText Shimmer

Productivity

Agent ChatAI Chat InputCoding AgentFiltersFull CalendarKanbanNovel Editor
Docs/Components/Liquid Metal

Liquid Metal

WebGL-powered liquid metallic effect with animated metaballs. Supports dark/light mode, configurable blob count, speed, hue cycling, and smooth fade-in.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation-ui/liquid-metal

Tailwind v4 — Source Scanning

The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import { LiquidMetal } from "@/components/ui/liquid-metal"
<LiquidMetal className="h-[400px] w-full">
  <p className="z-10 text-4xl font-semibold">Hello</p>
</LiquidMetal>

Examples

Variations

Loading...
Calm, default, and energetic presets with different blob counts, speeds, and hue settings.

API Reference

PropTypeDefaultDescription
speednumber1Animation speed multiplier.
blobCountnumber5Number of metaball blobs (1–8).
blobSizenumber1Metaball radius scale.
colorCycleSpeednumber1Hue cycle speed. Set to 0 to freeze.
hueOffsetnumber0.6Starting hue 0–1 (0 red, 0.33 green, 0.6 blue).
blurnumber0CSS blur applied over the canvas in pixels.
maxDprnumber1.5Max device pixel ratio for performance.
PreviousKbdNextLoading State

On This Page

  • Installation
  • Usage
  • Examples
  • Variations
  • API Reference

Liquid Metal

1.3
5
1.0
2.0
0

Calm

Slow, fewer blobs, fixed blue

Default

Standard metallic effect

Energetic

Fast, many blobs, cycling hue