# Browser Window

> A browser window mockup for showing a dashboard or web app on a landing page, in Chrome or Safari frames, with a phone layout under 480px.

A React component for shadcn/ui and Tailwind CSS, from ssych ui (https://ssych.com). Free, MIT licensed, the source lands in your repo.

## Install

```bash
npx shadcn@latest add @ssych/browser-window
```

npm dependencies: clsx, lucide-react, motion, tailwind-merge

## Props

`<BrowserWindow />`

- `size?`: `"sm" | "md" | "lg" | "xl"`
- `showSidebar?`: `boolean`
- `sidebarPosition?`: `"left" | "right" | "top" | "bottom"`
- `headerStyle?`: `"minimal" | "full"`
- `variant?`: `"chrome" | "safari" | "generic"`
- `theme?`: `"light" | "dark" | "auto"`
- `url?`: `string`
- `showNavButtons?`: `boolean`
- `showActions?`: `boolean`
- `sidebar?`: `React.ReactNode`
- `sidebarWidthClassName?`: `string`
- `addressBarAlign?`: `"center" | "right"`
- `sidebarItems?`: `Array<{ icon?: React.ReactNode label: string active?: boolean badge?: string | number }>`

## Where it belongs

- Sidebar: React sidebar, dock and file tree components for app shells: collapsible navigation, nested trees and window chrome. (https://ssych.com/library/s/sidebar)

## Related

- Sidebar: https://ssych.com/library/sidebar.md
- File Tree: https://ssych.com/library/file-tree.md
- macOS Dock: https://ssych.com/library/macos-dock.md
- Accordion: https://ssych.com/library/accordion.md
- MacBook Frame: https://ssych.com/library/macbook-frame.md

## Links

- Live preview and code: https://ssych.com/library/browser-window
- Source: https://github.com/savvasicevs/ssych-ui
- All components: https://ssych.com/llms-full.txt
