> To build a Wix site agentically, or add Wix features like bookings or a store to a site you already have, follow https://www.wix.com/headless/skill.md
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: EditableTitle Component

## Article: EditableTitle Component

## Article Link: https://dev.wix.com/docs/wix-design-system/components/layout/page/editable-title-component.md

## Article Content:

# EditableTitle

_Components/Layout/Page_

Interactive docs page: <https://wix-pages.com/design-system-documentation/#/component/editabletitle>

## Overview

```jsx
<Box align="center">
  <EditableTitle
    defaultValue="Write your own title"
    initialValue="Write your own title"
  />
</Box>;
```

Editable title allows users to change a page title on the spot. It is used as a title inside of a `<Page.Header/>` component.

### Do

- Use it to let users give a title to a page, such as a product, category or event detail page.
- Use it as a part of a `<PageHeader/>`.

### Don't

- Don't use it for static page titles that can't be edited, such as Inventory, Settings or Subscriptions.
- Don't use it outside of a `<PageHeader/>` component.
- Don't use it as an editable cell or title inside forms or tables. Use `<Input/>` with a 'bottomBorder' border type instead.

### Feature examples

#### Max length

Define a max number of characters that users can write in the title with `maxLength` prop.

`maxLength` includes spaces and has no default value.

```jsx
<EditableTitle initialValue="I can only write 24 char" maxLength={24} />;
```

#### Auto focus

Make the component ready to type in as soon as it is rendered (on mount) with `autoFocus` prop.

```jsx
<EditableTitle initialValue="Start writing now" autoFocus />;
```

#### Value

Control title text value with these props:

- `defaultValue` - use it to display a placeholder text. It will become a title if users do not change it.
- `initialValue` - use it to suggest a fitting opening title for users. They can delete and change it themselves.
- `value` - use it to specify the current value of the title.

Note that when users delete the `initialValue`, `defaultValue` is still shown.

```jsx
<StorybookComponents.Stack flexDirection="column">
  <EditableTitle defaultValue="Default Value" />
  <EditableTitle initialValue="Initial Value" />
  <EditableTitle value="value" />
</StorybookComponents.Stack>;
```

### Common use case examples

#### Giving a name for a newly created item

Use Editable title in the `<Page.Header/>` when users create a new item with no default name (e.g., a product for the Store).

Editable title can work in sync with Form components (e.g., writing 'Green Shoes' in the 'Name' field will automatically change the page title, too).

```jsx
() => {
  const [productName, setProductName] = React.useState('');

  return (
    <Page height="60vh">
      <Page.Header
        title=<EditableTitle
          defaultValue="Untitled Product"
          value={productName}
        />
        actionsBar={
          <Box gap="SP2">
            <Button skin="inverted">Cancel</Button>
            <Button>Save</Button>
          </Box>
        }
        breadcrumbs={
          <Breadcrumbs
            activeId="2"
            items={[
              { id: '1', value: 'Products' },
              { id: '2', value: 'Untitled Product' },
            ]}
          />
        }
      />
      <Page.Content>
        <Layout>
          <Cell span={8}>
            <Card>
              <Card.Header title="Product info" />
              <Card.Divider />
              <Card.Content>
                <Layout>
                  <Cell span={6}>
                    <FormField label="Name">
                      <Input
                        value={productName}
                        onChange={(e) => setProductName(e.target.value)}
                        placeholder="Add a product name"
                      />
                    </FormField>
                  </Cell>
                  <Cell span={6}>
                    <FormField label="Price">
                      <Input prefix={<Input.Affix>$</Input.Affix>} />
                    </FormField>
                  </Cell>
                  <Cell span={12}>
                    <FormField label="Description">
                      <RichTextInputArea minHeight="114px" maxHeight="114px" />
                    </FormField>
                  </Cell>
                </Layout>
              </Card.Content>
            </Card>
          </Cell>
        </Layout>
      </Page.Content>
    </Page>
  );
};
```

## Code

```jsx
import { EditableTitle } from '@wix/design-system';
```

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `autoFocus` | `boolean` | — | Sets focus on the title as soon as the component is rendered (on mount) |
| `className` | `string` | — | Specifies a CSS class name to be appended to the component's root element. |
| `dataHook` | `string` | — | Applies a data-hook HTML attribute that can be used in the tests. |
| `defaultValue` | `string` | `''` | Defines text value that is shown when the title is empty. When clicked, this value becomes the default 'value' |
| `initialValue` | `string` | — | Defines a text value that is shown initially. |
| `maxLength` | `number` | — | Sets the max number of characters that a user can type in the title. |
| `onChange` | `ChangeEventHandler` | — | Triggers function when the title is being edited. |
| `onSubmit` | `(value: string) => void` | — | Triggers function when a user is done with editing the title. |
| `value` | `string` | — | Sets the controlled value of the input. |

## Testkit

Import the driver matching your test environment:

```jsx
// UniDriver
import { EditableTitleUniDriver } from '@wix/design-system/dist/testkit/unidriver';

// Vanilla
import { EditableTitleTestkit } from '@wix/design-system/dist/testkit';

// Puppeteer
import { EditableTitleTestkit } from '@wix/design-system/dist/testkit/puppeteer';

// Testing Library
import { EditableTitleTestkit } from '@wix/design-system/dist/testkit/testing-library';
```

### Driver methods

| Method | Description |
| --- | --- |
| `getInput` | — |
| `getHeadingText` | — |
| `clickHeading` | — |
| `exists` | Checks whether the component found with the given data hook. |
| `element` | Gets the component root element. |
| `click` | Clicks on the component root element. |
| `base` | Returns UniDriver for the base element. |

## Changelog

- **1.339.0** (2026-10-19) — maintenance release, no component-specific changes
- **1.338.0** (2026-10-15) — maintenance release, no component-specific changes
- **1.337.0** (2026-10-14) — maintenance release, no component-specific changes
- **1.330.3** (2026-09-29) — maintenance release, no component-specific changes
- **1.328.0** (2026-09-22) — maintenance release, no component-specific changes
- **1.325.0** (2026-09-17) — maintenance release, no component-specific changes
- **1.312.0** (2026-08-14) — maintenance release, no component-specific changes
- **1.310.0** (2026-08-10) — maintenance release, no component-specific changes
- **1.306.0** (2026-07-31) — maintenance release, no component-specific changes
- **1.299.0** (2026-07-17) — maintenance release, no component-specific changes
- **1.295.0** (2026-07-03) — maintenance release, no component-specific changes
- **1.292.0** (2026-06-22) — maintenance release, no component-specific changes
- **1.291.0** (2026-06-19) — maintenance release, no component-specific changes
- **1.273.0** (2026-04-30) — maintenance release, no component-specific changes
- **1.266.0** (2026-04-07) — maintenance release, no component-specific changes
- **1.260.0** (2026-03-17) — maintenance release, no component-specific changes
- **1.247.2** (2026-01-21) — maintenance release, no component-specific changes
- **1.245.0** (2026-01-06) — fix: fix keyboard navigation tabbing ([#15747](invalid-url))
- **1.212.0** (2025-08-11) — maintenance release, no component-specific changes
- **1.175.1** (2025-04-01) — maintenance release, no component-specific changes
- **1.141.0** (2024-11-19) — fix: change type of `getInput()` testkit method ([#14299](invalid-url))
- **1.139.2** (2024-11-12) — maintenance release, no component-specific changes
- **1.115.0** (2024-07-17) — maintenance release, no component-specific changes
- **1.102.0** (2024-04-16) — maintenance release, no component-specific changes
- **1.92.1** (2024-02-05) — maintenance release, no component-specific changes