Sections
Get Started
Components
- Accordion
- Alert Dialog
- Animated Gradient Text
- Animated Shiny Text
- Avatar
- Badge
- Bento Box
- Bento Grid
- Border Beam
- Breadcrumbs
- Card
- Checkbox
- Custom Cursor
- Dialog
- Glow Border
- Glow Card
- Hyper Text
- Logo Beam
- Marquee
- Number Counter
- Popover
- Ripple Button
- Scroll Area
- Separator
- Shimmer Button
- Shinny Icons
- Tabs
- Terminal
- Text Animate
- Theme Toggler
- Typing Animation
- Word Rotate
🎉
Introducing Ebon UI
Introducing Ebon UI
import { ChevronRight } from "lucide-react"
import { cn } from "@/lib/utils"
import { AnimatedGradientText } from "@/components/ui/animated-gradient-text"
export function AnimatedGradientTextDemo() {
return (
<div className="group relative mx-auto flex items-center justify-center rounded-full px-4 py-1.5 shadow-[inset_0_-8px_10px_#8fdfff1f] transition-shadow duration-500 ease-out hover:shadow-[inset_0_-5px_10px_#8fdfff3f]">
<span
className={cn(
"animate-gradient absolute inset-0 block h-full w-full rounded-[inherit] bg-gradient-to-r from-[#ffaa40]/50 via-[#9c40ff]/50 to-[#ffaa40]/50 bg-[length:300%_100%] p-[1px]"
)}
style={{
WebkitMask:
"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "destination-out",
mask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
maskComposite: "subtract",
WebkitClipPath: "padding-box",
}}
/>
🎉 <hr className="mx-2 h-4 w-px shrink-0 bg-neutral-500" />
<AnimatedGradientText className="text-sm font-medium">
Introducing Ebon UI
</AnimatedGradientText>
<ChevronRight className="ml-1 size-4 stroke-neutral-500 transition-transform duration-300 ease-in-out group-hover:translate-x-0.5" />
</div>
)
}
Installation
pnpm dlx shadcn@latest add https://ebonui.com/r/animated-gradient-text.json
Examples
Custom Speed
Fast Gradient
import { AnimatedGradientText } from "@/components/ui/animated-gradient-text"
export function AnimatedGradientTextDemo() {
return (
<AnimatedGradientText
speed={2}
colorFrom="#4ade80"
colorTo="#06b6d4"
className="text-4xl font-semibold tracking-tight"
>
Fast Gradient
</AnimatedGradientText>
)
}
Usage
import { AnimatedGradientText } from "@/components/ui/animated-gradient-text"<AnimatedGradientText>Animated Gradient Text</AnimatedGradientText>Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | node | - | The children passed into the component |
className | string | - | The class name to be applied |
speed | number | 1 | The speed of the gradient animation |
colorFrom | string | "#ffaa40" | The starting color of the gradient |
colorTo | string | "#9c40ff" | The ending color of the gradient |
Support Ebon UI by giving it a star on GitHub!
A lot of work goes into maintaining and improving Ebon UI. Your stars help show your support and encourage further development.
Star on Github