Skip to Content

Corner Bloom

Card and panel background: a flat ground with one soft light bloom in the top-right corner, like a spotlight or light leak. The dark tone suits an inset panel; the warm tone paints a lit cream panel with soft grain.

Installation

pnpm dlx shadcn@latest add @01orbital/corner-bloom

Usage

import { CornerBloom } from "@/components/scene/corner-bloom"

// It fills a positioned panel; the panel is what it lights.
export default function CornerBloomDemo() {
  return (
    <div className="grid w-full place-items-center p-6">
      <div className="relative aspect-4/3 w-full max-w-md overflow-hidden rounded-2xl">
        <CornerBloom tone="dark" />
      </div>
    </div>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/corner-bloom-demo

Examples

Warm Widecorner-bloom-warm-wide

Corner Bloom Warm Wide: an example of corner-bloom.

pnpm dlx shadcn@latest add @01orbital/corner-bloom-warm-wide

API reference

Flat panel with one soft corner bloom: a wide, low wash from the top right corner, painted in the ground so it has no edge of its own.

Prop

Type

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

Dependencies

npm: cn. The CLI installs it for you.

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

Used in blocks

One block is built with Corner Bloom.

Last updated on