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
Login
Enter your credentials to access your account
"use client"
import { useTheme } from "next-themes"
import { Button } from "@/components/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import { GlowCard } from "@/components/ui/glow-card"
export function GlowCardDemo() {
const { theme } = useTheme()
return (
<Card className="w-full max-w-sm border-none p-0 shadow-none">
<GlowCard
gradientColor={theme === "dark" ? "#262626" : "#D9D9D955"}
className="p-0"
>
<CardHeader className="border-border border-b p-4 [.border-b]:pb-4">
<CardTitle>Login</CardTitle>
<CardDescription>
Enter your credentials to access your account
</CardDescription>
</CardHeader>
<CardContent className="p-4">
<form>
<div className="grid gap-4">
<div className="grid gap-2">
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" placeholder="name@example.com" />
</div>
<div className="grid gap-2">
<Label htmlFor="password">Password</Label>
<Input id="password" type="password" />
</div>
</div>
</form>
</CardContent>
<CardFooter className="border-border border-t p-4 [.border-t]:pt-4">
<Button className="w-full">Sign In</Button>
</CardFooter>
</GlowCard>
</Card>
)
}
Installation
pnpm dlx shadcn@latest add https://ebonui.com/r/glow-card.json
Usage
import { GlowCard } from "@/registry/ebonui/glow-card"<GlowCard>
<div className="p-4">
<p>Hello World</p>
<span>Hover me</span>
</div>
</GlowCard>Props
GlowCard
| Prop name | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | The content to be rendered inside the card |
className | string | - | Additional CSS classes to apply to the card |
gradientSize | number | 200 | Size of the gradient effect |
gradientColor | string | #262626 | Color of the gradient effect |
gradientOpacity | number | 0.8 | Opacity of the gradient effect |
gradientFrom | string | #9E7AFF | Start color of the gradient border |
gradientTo | string | #FE8BBB | End color of the gradient border |
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