Border Beam

A light that travels around the edge of a card.

Roaster’s pick

A new lot every month, chosen by the people who roast it.

import { BorderBeam, Button } from '@brand-studio/ui';

export default function BorderBeamDemo() {
  return (
    <BorderBeam style={{ width: '100%', maxWidth: 360, padding: 24, background: 'var(--bs-elevated)', border: '1px solid var(--bs-line)' }}>
      <h3 style={{ margin: '0 0 8px', fontSize: 18 }}>Roaster’s pick</h3>
      <p style={{ margin: '0 0 20px', color: 'var(--bs-muted)' }}>A new lot every month, chosen by the people who roast it.</p>
      <Button>Subscribe</Button>
    </BorderBeam>
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { BorderBeam } from '@brand-studio/ui';
<BorderBeam style={{ padding: 24 }}>…</BorderBeam>

Accessibility

  • Decorative only. The beam is drawn in CSS and stops under reduced motion.

API Reference

PropTypeDefault
duration?number6

Also accepts every HTMLAttributes<HTMLDivElement> attribute.

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.