Skip to Content

Glow Line

Glowing line divider with layered bloom, horizontal or vertical, positioned along its parent. Takes any color, intensity and thickness; it glows on dark themes and becomes a shaded ink line on light ones.

View as Markdown
pnpm dlx shadcn add @01orbital/glow-line

Usage

import { GlowLine } from "@/components/glow/glow-line"

API reference

A thin line of light with a soft bloom, brightest at its midpoint and fading out at both ends. It spans its positioned parent along one axis and is centered on position along the other.

In dark mode the line is light and blooms; in light mode it is the same hue pulled toward ink, with a darker bloom. It ignores the pointer and is hidden from assistive tech.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you. cn merges Tailwind class names, in place of clsx and tailwind-merge.