Browser Window

A clean, responsive mock browser window for displaying UI components or screenshots in a contained environment.

layout Premium PlanNew Release

Availability

Included in Premium Plans

This flagship component is part of Future UI's monthly & yearly Premium plans and is not distributed via the free public CLI.

Import

import { BrowserWindow } from "@/components/ui/browser-window"
Layout Variant
Color Theme
Size
Shape
Spacing

Named Keys & Props

Pass these exact named keys as props on <BrowserWindow />. Click any color pill to copy the prop.

colorDefault is "default"(Black & White)
variantVisual style
"solid""outline""ghost""link"
shapeCorner shape
"default""square""rounded""sharp"
spacingInner spacing
"default""2x""4x""6x""8x"
sizeComponent size
"sm""md""lg"

Usage Example

A basic implementation example to get you started.

Example Implementation
import { BrowserWindow } from"@/components/ui/browser-window";

export default function Example() {
 return (
 <BrowserWindow className="max-w-2xl aspect-video" variant="solid" color="slate" size="md" shape="default" spacing="default">
 <div className="flex items-center justify-center h-full">
 Your Content Here
 </div>
 </BrowserWindow>
 );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Perfect for component showcases, documentation, and portfolio sites.
  • ◆Automatically handles aspect ratio and responsive scaling.
  • ◆Built-in mock window header with macOS style traffic lights.
  • ◆Provides an isolated canvas with customized scrollbars.
  • ◆Supports 'ghost', 'solid', 'outline', and 'link' layout variants.
  • ◆Offers 'sm', 'md', and 'lg' sizes for headers and controls.
  • ◆Adjustable gap and padding spacing with 'default', '2x', '4x', '6x', and '8x'.
  • ◆Shape styling including 'square', 'rounded', 'sharp', and 'default'.
  • ◆Full 10-color palette support via the color prop.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Plan: Included in Future UI Monthly & Yearly Premium Plans.
  • ◆Wrap any content in <BrowserWindow> to mock a browser view.
  • ◆Use'contentClassName'to style the internal canvas.
  • ◆Variants: Pass'variant="ghost"' (default),'solid','outline', or'link'.
  • ◆Size: Use the'size'prop ('sm','md','lg') to scale the window elements.
  • ◆Spacing: Use the'spacing'prop to adjust padding around the content.
  • ◆Shape: Use the'shape'prop ('square','rounded','sharp') to style the window borders.
  • ◆Color: Choose from 10 theme colors (default, blue, emerald, rose, amber, violet, indigo, sky, slate, orange).