Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/retro-webpage/llms.txt
Use this file to discover all available pages before exploring further.
BeveledPanel is the primary content container in Retro Webpage. It mimics the raised, beveled window frames of Windows 98 and Windows 95 — complete with an optional title bar, functioning-look minimize (_), maximize (□), and close (X) chrome buttons, and a white inset content area. Four colour variants let you match panels to the page’s teal, pink, or neutral palette, while an inset variant flips the border direction for a sunken well effect.
Props
Content rendered inside the panel’s white content area (
p-2 padding). Accepts any valid React children — text, images, nested components, etc.Optional title string. When provided, a Windows 98-style title bar is rendered above the content area. The title bar background is
bg-retro-teal for default, teal, and inset variants, and bg-retro-pink for the pink variant.Controls the border bevel style applied to the outer panel wrapper:
| Value | CSS Class | Effect |
|---|---|---|
default | bevel-outset | Raised outset border (standard Windows window frame) |
teal | bevel-teal | Outset border with a teal accent |
pink | bevel-pink | Outset border with a pink accent |
inset | bevel-inset | Sunken inset border (inner well or depressed field) |
Optional additional class names merged onto the outer panel
<div>. Use to control width, margin, grid placement, or any other layout concerns without modifying the component itself.Variant Showcase
Without a Title Bar
Omitting thetitle prop renders a plain bordered panel with no chrome — useful for image frames, card grids, or decorative containers:
DOM Structure
Whentitle is provided:
The minimize, maximize, and close buttons are purely decorative — they render as
<div> elements with cursor-pointer and a hover background change, but have no onClick handlers attached. They exist solely for visual authenticity.CSS Classes
| Class | Description |
|---|---|
bevel-outset | Raised Windows 98-style border (light top-left, dark bottom-right) |
bevel-teal | Outset bevel with teal colour accent on the border highlights |
bevel-pink | Outset bevel with pink colour accent on the border highlights |
bevel-inset | Sunken inset border (dark top-left, light bottom-right) |
p-1 mb-4 | Outer panel padding and bottom margin |
bg-retro-teal | Title bar background for default, teal, and inset variants |
bg-retro-pink | Title bar background for the pink variant |
font-vt323 | VT323 monospace pixel font used in the title bar text |
w-4 h-4 | Fixed 16 × 16 px size for each chrome button |