A beautiful, customizable animated orb component for React applications! Perfect for AI interfaces, assistants, interactive chatbots, or anywhere you need a glowing orb. 🔮✨
Install the package via npm:
npm i react-ai-orb
import { Orb } from "react-ai-orb";
const MyComponent = () => (
return <Orb />
);The component needs to be imported like this:
"use client";
import { Orb } from "react-ai-orb";| Prop | Type | Default | Description |
|---|---|---|---|
palette |
OrbPalette |
cosmicNebula |
Defines the color palette for the orb. Use predefined palettes or create custom ones. |
size |
number |
1 |
Sets the size of the orb. |
animationSpeedBase |
number |
1 |
Determines the base speed of the rotation animation. |
animationSpeedHue |
number |
1 |
Sets the speed of the hue animation. |
hueRotation |
number |
120 |
Adjusts the hue rotation degree for the orb colors. |
mainOrbHueAnimation |
boolean |
false |
Enables or disables the hue animation on the main orb. |
blobAOpacity |
number |
0.3 |
Controls the opacity of blob A (range: 0 to 1). |
blobBOpacity |
number |
0.8 |
Controls the opacity of blob B (range: 0 to 1). |
noShadow |
boolean |
false |
Disables the Orb's shadow when set to true. |
import { Orb, oceanDepthsPreset } from "react-ai-orb";
const MyComponent = () => (
return <Orb {...oceanDepthsPreset} />
);- 🪼
oceanDepthsPreset - 🌌
galaxyPreset - 🌊
caribeanPreset - 🌸
cherryBlossomPreset - ❇️
emeraldPreset - 🦄
multiColorPreset - ☀️
goldenGlowPreset
npx rollup -c
Feel free to open issues or submit PRs for new features, bug fixes, or documentation improvements.


