Bezel

A React component in Beamline's Layout category, in the free sample.

A double-bezel frame: an outer shell with a hairline, a small gap, and an inset panel with its own edge, so a preview, chart or media reads as set into the surface.

Use it for

  • Framing a preview, chart, video or illustration inside a card.
  • Icon tiles and thumbnails that should read as objects.
  • The shell of Card and MetricCard (their `frame="bezel"`).

Not for

  • Plain grouping of form fields or text (card, or nothing).
  • Nesting a bezel inside a bezel.

Anatomy

  • shell (hairline, top highlight)
  • inner panel (inset, darker)
  • footer (optional)
  • icon tile (BezelIcon)

Variants

  • size: sm, md

States

  • static
  • interactive: pointed at or focus inside (the picture leans toward you inside its frame)

Keyboard

  • Not interactive by itself; with interactive, focus on the link or button inside shows the same lean as hover.

Motion

Static by default. interactive: the picture set into the panel grows 4% inside its clip over --pui-motion-in when pointed at or focused, and settles over --pui-motion-out; the frame never moves; none under reduced motion.

Props

PropTypeDefaultDescription
footer / size / innerClassName / asReactNode / "sm" | "md" / string / tag—footer: Sits in the shell under the panel: an icon tile with a title and a line, or actions. size: `sm` for tiles and small previews (6 px gap), `md` for cards (10 px). innerClassName: Extra classes for the inner panel. as: HTML element used for the text or container. Defaults to "div".
interactivebooleanfalseThe bezel is something to open (a template, a file, a preview): the picture set into it leans toward the pointer (or focus inside) and the frame is a pointer target. Put the link or button inside.
style / refCSSProperties / native Ref—style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented root element; no ref by default.
classNamesBezelClassNames—Classes for the named visual parts; no part overrides by default.
footerReactNode—Sits in the shell under the panel: an icon tile with a title and a line, or actions.
size"md" | "sm"—`sm` for tiles and small previews (6 px gap), `md` for cards (10 px).
innerClassNamestring—Extra classes for the inner panel.
as"article" | "div" | "li" | "section"—HTML element used for the text or container. Defaults to "div".
refRef<HTMLElement>—Receives the documented root element; no ref by default.

Used in

Import

import { Bezel, BezelIcon } from "@beamline/bezel";

Get it

Bezel is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Bezel is included in the free MIT sample. Get Beamline · Connect your agent

More in Layout

  • Carousel: A row of slides that snap into place: swipe on touch, drag or the arrows with a mouse, ← → when focused, or the dots; optional autoplay that pauses and…
  • Card: A record or a small group of related content and actions: optional media, avatar, title, status, action, meta, free content and a Details toggle; plain…
  • Resizable panels: Panes that trade space across draggable dividers; each divider is a focusable separator with arrow keys, limits, folding for collapsible panes and…
  • UI root: Makes a region of any app a Beamline root: theme, brand and direction for everything inside, and a matching layer at page level where its menus, dialogs…
  • Expandable card: A dense card that grows in place when asked: the frame resizes and the clamped preview opens into the full text.
  • Accordion: Topics that open in place, one at a time or several: FAQs and settings sections; each header is a button (with an optional fact at its end), and the…
  • Collapsible: One region that opens and closes in place from its trigger, its height animating to the content.
  • Scroll area: A native scroll region with thin overlay thumbs and edge fades that show only where more content waits; thumbs can be dragged or clicked.
  • Aspect ratio: Holds media, video and embeds at a fixed width-to-height ratio while the layout resizes.
  • Direction: Sets left-to-right or right-to-left for everything inside: text and logical spacing flip, and Radix parts read the direction for keys and placement.
  • Separator: A hairline between groups, horizontal or vertical; hidden from screen readers unless it carries meaning.

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.