> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# `<title-bar-view>` Clay Windows Clay macOS

APISummary
`<title-bar-view>` is designed to customize the draggable area of the window.

## Usage

**This is an example below: title-bar-view**

**Bundle:** `dist/base.lynx.bundle`

```tsx
// Copyright 2026 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.

import { root, useRef, useState } from "@lynx-js/react";

const App = () => {
  return (
    <view
      style={{
        width: "100%",
        height: "100%",
        flexDirection: "column",
        backgroundColor: "white",
      }}
    >
      <title-bar-view moveable={true} style={{ width: "100%", height: "50px", backgroundColor: "red" }}>
        <text style={{ fontSize: "30px" }}>Title Bar View, drag me</text>
      </title-bar-view>
    </view>
  );
};

root.render(<App />);

if (import.meta.webpackHot) {
  import.meta.webpackHot.accept();
}

```

v0.7.0



`<title-bar-view>` is similar to the `app-region` style on the web and allows developers to customize the draggable area of the window.

## Attributes

### `moveable`

Clay Windows
Clay macOS
```tsx
// @defaultValue: false
moveable?: boolean;
```

When set to `true`, dragging the title bar view moves the window.

## Compatibility

**Compatibility Table**

**Query:** `elements.title-bar-view`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/elements/title-bar-view.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| title-bar-view | No | No | No | Yes (3.8) | Yes (3.8) | No |
| moveable | No | No | No | Yes (3.8) | Yes (3.8) | No |
| boundingClientRect | No | No | No | Yes (4.0) | Yes (4.0) | No |
| requestAccessibilityFocus | No | No | No | No | No | No |
| scrollIntoView | No | No | No | Yes (4.0) | Yes (4.0) | No |
| setFocus | No | No | No | Yes (4.0) | Yes (4.0) | No |
| takeScreenshot | No | No | No | Yes (4.0) | Yes (4.0) | No |

**`title-bar-view`**

title-bar-view

**`moveable`**

<code>moveable</code>

**`boundingClientRect`**

<code>boundingClientRect</code>

**`requestAccessibilityFocus`**

<code>requestAccessibilityFocus</code>

**`scrollIntoView`**

<code>scrollIntoView</code>

**`setFocus`**

<code>setFocus</code>

**`takeScreenshot`**

<code>takeScreenshot</code>

