# Browser Frame

> Browser chrome whose address types itself in.

Tabs, an address bar that types on arrival and a loading bar once it is entered. For product pages and case studies.

- Family: Chrome
- Plan: Creative. Included with Creative.
- Requires: React, Tailwind CSS v4 and the motion package
- Page with a live preview: https://galactrex.com/ui/browser-frame/
- Licence: https://galactrex.com/ui/license/

## Install

```sh
npx @galactrex/ui login   # once, with an API key from https://galactrex.com/account/
npx @galactrex/ui add browser-frame
```

It installs to `components/galactrex/browser-frame.tsx`, with the shared motion helpers beside it. First time in a project: `npx @galactrex/ui init` (setup guide: https://galactrex.com/docs/ui-components-setup/).

## Usage

```tsx
import { BrowserFrame } from "@/components/galactrex/browser-frame";

<BrowserFrame url="galactrex.com/ui">…</BrowserFrame>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | The page. |
| `url` | `string` | — | Address. |
| `tabs` | `string[]` | — | Tab titles; first is active. |
| `typeUrl` | `boolean` | `true` | Type the address in. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Screenshot.** An image inside.
- **Live.** Real components inside.

## Accessibility

- The address is real text for assistive tech from the start.

## Motion

- Text typing and a one-off width transition.
- Reduced motion: shown at once.
