UI / Decor
Seasonal Garland
Hand-drawn SVG trim for an edge: Christmas lights and snow, Halloween, New Year flags, Lunar New Year lanterns, Valentine hearts or Easter eggs.
edge="top"
edge="bottom"
Installation
npx shadcn@latest add https://jiaweing.com/r/seasonal-garland.jsonWith the @jiaweing namespace set up, use @jiaweing/seasonal-garland in place of the URL.
Usage
tsx
import { SeasonalGarland } from "@/components/seasonal-garland";tsx
<header className="relative">
...
<SeasonalGarland season="christmas" />
</header>- Put it inside an element with relative positioning. It reaches 26px above the edge and 46px below it.
- The animations stop for visitors who ask for reduced motion.
Props
SeasonalGarland
| Prop | Type | Default | Description |
|---|---|---|---|
| season | "christmas" | "halloween" | "new-year" | "lunar-new-year" | "valentines" | "easter" | - | Which trim to draw. |
| edge | "top" | "bottom" | "bottom" | bottom piles things on the edge and lets them hang below it. top hangs them from the top. |
| className | string | - | Extra classes, merged with cn. |
MIT licensed. Copy it, change it, ship it.