| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A reusable and customizable glow card effect component built with shadcn, Tailwind CSS, and React. This component allows you to create stunning glowing cards by wrapping your content in a GlowArea and Glow component.
Clone the repository:
git clone https://github.com/callmedeci/Glow-Card-Effect.gitNavigate to the project directory:
cd glow-cardsInstall dependencies:
npm installStart the development server:
npm run devOpen your browser and visit http://localhost:5173 to view the project.
import { GlowArea, Glow } from './components/Glow';
import { Card, CardHeader, CardTitle, CardContent, CardDescription, CardFooter } from './components/ui/card';
import { Button } from './components/ui/button';<GlowArea className="flex gap-5">
<Glow color="var(--color-rose-800)" className="rounded-xl">
<Card className="max-w-lg">
// other components
</Card>
</Glow>
</GlowArea>The GlowArea component is the container for all Glow components. It ensures the glow effects are properly positioned and animated.
GlowArea({ className, size = 300, children, ...props })| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | "" | Additional Tailwind CSS classes. |
| size | number | 300 | The size of the glow area in pixels. |
| children | ReactNode | null | The child elements to render. |
| ...props | HTMLAttributes | {} | Additional HTML attributes. |
The Glow component wraps your content and applies the glow effect.
Glow({ color, className, children, ...props })| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | #ffffff | The color of the glow effect. |
| className | string | "" | Additional Tailwind CSS classes. |
| children | ReactNode | null | The child elements to render. |
| ...props | HTMLAttributes | {} | Additional HTML attributes. |
This project uses the following libraries:
Enjoy using the Glow Cards component!
| Back | FazBrowse Home | New Git URL |