# 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.

Component · Glow · https://01orbital.dev/docs/components/glow-line

## Installation

```bash
npx shadcn@latest add @01orbital/glow-line
```

## Usage

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

export default function GlowLineDemo() {
  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 h-72 w-full max-w-2xl overflow-hidden rounded-lg">
        <GlowLine
          color="oklch(0.72 0.18 9)"
          intensity={1}
          thickness={0.15}
          position="52%"
        />
      </div>
    </div>
  )
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/glow-line-demo
```

## 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 | Default | Description |
| --- | --- | --- | --- |
| `orientation?` | `"vertical" \| "horizontal"` | `"horizontal"` | `horizontal` (the default) runs the line across the parent's full width; `vertical` runs it down the parent's full height. |
| `position?` | `Property.Top<string \| number>` | `"50%"` | Where the line sits across its axis: from the top when horizontal, from the left when vertical. Any CSS length; default 50%. |
| `color?` | `string` |  | The glow color, as any CSS color. Defaults to `currentColor`, so it follows the theme's text color. |
| `core?` | `string` |  | The color of the bright spot at the line's midpoint. Unset, it follows the ground: near-white in dark mode, near-black ink in light mode. |
| `intensity?` | `number` | `0.75` | Overall strength from 0 to 1, applied as opacity. Default 0.75. |
| `thickness?` | `number` | `1` | Scales the bloom around the 1px core. 1 is the default; 0.4 makes a tight seam. |

## Dependencies

npm: `cn`
