Side Glow

Soft blue radial glow anchored to one edge of a positioned parent: top, right, bottom or left. Ships with SeamLine, a one-pixel overlay-blended rule for marking a panel edge.

Open the preview in a new tab

The source comes with full access.

One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/side-glow
npx shadcn add @01orbital/side-glow
yarn shadcn add @01orbital/side-glow
bunx --bun shadcn add @01orbital/side-glow

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/glow/side-glow.tsx, as source you own and edit.

Usage

import { SeamLine, SideGlow } from "@/components/glow/side-glow"

// The glow and its seam on one edge of a panel.
export default function SideGlowDemo() {
  return (
    <div className="dark relative isolate grid min-h-full w-full flex-1 place-items-center overflow-hidden bg-background text-foreground">
      <div className="relative isolate h-72 w-full max-w-md">
        <SideGlow edge="right" />
        <SeamLine className="inset-y-0 right-0" />
      </div>
    </div>
  )
}

Anatomy

Side Glow is built from 2 parts. In the example they nest like this:

SideGlow
SeamLine
  • SideGlow: A soft blue glow that comes in from one edge of a section, for the background behind its content. Put it inside a positioned parent: it fills that parent, clips itself to it, ignores the pointer and is hidden from assistive tech.
  • SeamLine: A one-pixel vertical line of white, blended in overlay mode so it lightens the surface under it. It is decorative and hidden from assistive tech.

API reference

SideGlow

A soft blue glow that comes in from one edge of a section, for the background behind its content. Put it inside a positioned parent: it fills that parent, clips itself to it, ignores the pointer and is hidden from assistive tech.

Prop

Type

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

SeamLine

A one-pixel vertical line of white, blended in overlay mode so it lightens the surface under it. It is decorative and hidden from assistive tech.

It is absolutely positioned with no height of its own: place it with className, for example inset-y-0 right-0.

It accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you.

No other registry pieces.

On this page