Launch board
The mesh needs a real foreground composition so the color fields read behind content.
Animated multi-color gradient mesh background with optional interactivity
Give the effect real surface area, a strong foreground card, and a slow ambient drift so the mesh reads without turning the preview into a busy light show.
The mesh needs a real foreground composition so the color fields read behind content.
Interactive mode pulls the highlight toward the pointer instead of staying flat.
Animation already backs off when the browser asks for less movement.
Copy this entrypoint first. It includes the imports required to get the component on screen.
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { GradientMesh } from '@dryui/ui';
</script>
<GradientMesh>Content</GradientMesh> Root package
import { GradientMesh } from '@dryui/ui' Per-component subpath
import { GradientMesh } from '@dryui/ui/gradient-mesh' Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
| colors | readonly [string, string, string, string] | — | ['#7b68ee' | — | — |
| speed | slownormalfast | — | 'normal' | — | — |
| interactive | boolean | — | false | — | — |
| children | Snippet | Content rendered inside the component. | — | — | — |