Pro features unlocked
Every block, every theme and early access to new components.
Installation
$ pnpm dlx shadcn@latest add @synccn/shine-borderFirst time in this project? Connect synccn with one command.
Usage
import { ShineBorder } from "@/components/ui/shine-border";<ShineBorder>…</ShineBorder>API reference
Generated from the component's TypeScript types, so it always matches the code.
ShineBorder
A rotating gradient that glints around the border of its container.
PropTypeDescription
- colors
string[]Default
["oklch(0.75 0.15 230)", "oklch(0.7 0.2 300)", "oklch(0.8 0.14 60)"]Colours of the moving glint.
- width
numberDefault
1.5Border width in pixels.
- duration
numberDefault
8Seconds per rotation.
- innerClassName
stringClasses for the inner surface.
- children
React.ReactNodeContent to render.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- Shows a visible focus ring for keyboard users
More motion
MarqueeEndless scrolling row or column that pauses on hover.Number TickerCounts up to a number when it scrolls into view.TypewriterTypes and deletes a list of phrases.Shimmer TextA light sweep across text for loading moments.Word RotateCycles words with a vertical slide.Text ScrambleCharacters scramble and resolve left to right.