> 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: FullScreenModalLayout.Header Component

## Article: FullScreenModalLayout.Header Component

## Article Link: https://dev.wix.com/docs/wix-design-system/components/overlays/full-screen-modal-layout/full-screen-modal-layout-header-component.md

## Article Content:

# FullScreenModalLayout.Header

_Components/Overlays/FullScreenModalLayout_

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

## Overview

```jsx
() => {
  return (
    <Box padding="12px" backgroundColor="White">
      <FullScreenModalLayout.Header
        startNode={<CloseButton skin="dark" size="large" onClick={() => {}} />}
        endNode={
          <TextButton size="small" onClick={() => {}}>
            Save
          </TextButton>
        }
      >
        <Text size="small" weight="normal" ellipsis>
          Modal Title
        </Text>
      </FullScreenModalLayout.Header>
    </Box>
  );
};
```

The `FullScreenModalLayout.Header` is the top section of the [full screen modal](https://www.wix-pages.com/wix-design-system-employees/?path=/story/components-overlays-fullscreenmodallayout--fullscreenmodallayout\&previewId=73bbe16c-f0b9-4d24-a494-93db53a2d889\&storyName=FullScreenModalLayout.Header). It holds key actions that help users understand where they are and what they can do next.

It stays fixed at the top of the screen while the user scrolls through the content below, making the most important controls always accessible.

### Do

- Use the header to clearly communicate the purpose of the modal.
- Keep actions simple and predictable. For example: Close, Back, Save.
- Use ellipsis on long titles to prevent wrapping. Ellipsis property is applied on `<Text/>`
- Use subtitles to provide additional context.

### Don't

- Do not overload the header with too many actions.
- Don't use long titles that wrap to multiple lines.
- Don't include complex layouts or content in the header. Keep it lightweight.

### Feature examples

#### Title

Use the title to communicate the main purpose of the modal.

For long titles, ensure that `<Text/>` is using `ellipsis` property.

The title can be removed when the modal doesn't require the context for the user.

```jsx
<StorybookComponents.Stack flexDirection="column" spacing="24px">
  <Box width="500px" padding="12px" backgroundColor="White">
    <FullScreenModalLayout.Header
      startNode={<CloseButton skin="dark" size="large" onClick={() => {}} />}
      endNode={
        <TextButton size="small" onClick={() => {}}>
          Save
        </TextButton>
      }
    >
      <Text size="small" weight="normal" ellipsis={false}>
        Modal Title
      </Text>
    </FullScreenModalLayout.Header>
  </Box>
  <Box width="500px" padding="12px" backgroundColor="White">
    <FullScreenModalLayout.Header
      startNode={<CloseButton skin="dark" size="large" onClick={() => {}} />}
      endNode={
        <TextButton size="small" onClick={() => {}}>
          Save
        </TextButton>
      }
    >
      <Text size="small" weight="normal" ellipsis>
        Very long modal title that has ellipsis enabled and should truncate at
        some point
      </Text>
    </FullScreenModalLayout.Header>
  </Box>

  <Box width="500px" padding="12px" backgroundColor="White">
    <FullScreenModalLayout.Header
      startNode={<CloseButton skin="dark" size="large" onClick={() => {}} />}
      endNode={
        <TextButton size="small" onClick={() => {}}>
          Save
        </TextButton>
      }
    >
      <Text size="small" weight="normal">
        Very long modal title that is going over two lines, oh it's definitely
        going over two lines
      </Text>
    </FullScreenModalLayout.Header>
  </Box>

  <Box width="500px" padding="12px" backgroundColor="White">
    <FullScreenModalLayout.Header
      startNode={<CloseButton skin="dark" size="large" onClick={() => {}} />}
      endNode={
        <TextButton size="small" onClick={() => {}}>
          Save
        </TextButton>
      }
    ></FullScreenModalLayout.Header>
  </Box>
</StorybookComponents.Stack>;
```

#### Actions

Header has two slots:

1. `startNode`
2. `endNode`

These slots are `nodes` that you can use for any component

```jsx
<StorybookComponents.Stack flexDirection="column" spacing="24px">
  <Box width="500px" padding="12px" backgroundColor="White">
    <FullScreenModalLayout.Header
      startNode={
        <Box width="100%" height="100%" border="1px dashed">
          Start Node
        </Box>
      }
      endNode={
        <Box width="100%" height="100%" border="1px dashed">
          End Node
        </Box>
      }
    >
      <Text size="small" weight="normal" ellipsis={false}>
        Modal Title
      </Text>
    </FullScreenModalLayout.Header>
  </Box>
  <Box width="500px" padding="12px" backgroundColor="White">
    <FullScreenModalLayout.Header startNode={<Icons.ChevronLeftLarge />}>
      <Text size="small" weight="normal" ellipsis={false}>
        Modal Title
      </Text>
    </FullScreenModalLayout.Header>
  </Box>
  <Box width="500px" padding="12px" backgroundColor="White">
    <FullScreenModalLayout.Header
      startNode={<Icons.Dismiss></Icons.Dismiss>}
      endNode={<TextButton size="small"> Save </TextButton>}
    >
      <Text size="small" weight="normal" ellipsis={false}>
        Modal Title
      </Text>
    </FullScreenModalLayout.Header>
  </Box>
</StorybookComponents.Stack>;
```

#### Subtitle

Subtitle text should be used to provide more context to user.

For subtitle use `small` `secondary` text

```jsx
<StorybookComponents.Stack spacing="24px">
  <Box width="500px" padding="12px" backgroundColor="White">
    <FullScreenModalLayout.Header
      startNode={
        <Box width="100%" height="100%" border="1px dashed">
          Start Node
        </Box>
      }
      endNode={
        <Box width="100%" height="100%" border="1px dashed">
          End Node
        </Box>
      }
    >
      <Box align="center" direction="vertical">
        <Text size="small" weight="normal">
          Modal Title
        </Text>
        <Text size="small" weight="normal" secondary>
          Subtitle goes here
        </Text>
      </Box>
    </FullScreenModalLayout.Header>
  </Box>
</StorybookComponents.Stack>;
```

## Code

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

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | The main content node (e.g. title) |
| `dataHook` | `string` | — | Applies a data-hook HTML attribute that can be used in tests. |
| `endNode` | `ReactNode` | — | The right node (in LTR) |
| `startNode` | `ReactNode` | — | The left node (in LTR) |

## Testkit

No testkit for this component — it doesn't expose a unidriver testkit.

## Changelog

No released changes have been recorded for this component.