> 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.Content Component

## Article: FullScreenModalLayout.Content Component

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

## Article Content:

# FullScreenModalLayout.Content

_Components/Overlays/FullScreenModalLayout_

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

## Overview

```jsx
<Box>
  <FullScreenModalLayout.Content padding>
    <Box direction="vertical" gap="24px">
      <FormField label="Image">
        <ImageViewer width="100%" height="176px" />
      </FormField>

      <FormField label="Name">
        <Input value="My New Dish" />
      </FormField>

      <FormField label="Price">
        <Input value="0" prefix={<Input.Affix>$</Input.Affix>} />
      </FormField>

      <FormField label="Description">
        <InputArea
          placeholder="Describe your dish in a few sentences."
          resizable
          rows={3}
        />
      </FormField>

      <FormField
        label="Dietary preferences"
        infoContent="Choose which dietary preferences your dish is appropriate for."
      >
        <Box direction="vertical" gap="12px">
          <Checkbox>No salt</Checkbox>
          <Checkbox>Vegan</Checkbox>
          <Checkbox>Vegetarian</Checkbox>
          <Checkbox>Gluten free</Checkbox>
          <Checkbox>Organic</Checkbox>
          <Checkbox>Spicy</Checkbox>
        </Box>
      </FormField>

      <FormField label="Visibility">
        <Checkbox checked>Visible on site</Checkbox>
      </FormField>

      <FormField label="Availability">
        <Checkbox checked>In stock</Checkbox>
      </FormField>
    </Box>
  </FullScreenModalLayout.Content>
</Box>;
```

`FullScreenModalLayout.Content` is the main scrollable area of the [`FullScreenModalLayout`](https://www.wix-pages.com/wix-design-system-employees/?path=/story/components-overlays-fullscreenmodallayout--fullscreenmodallayout). It holds the core information and interactions users need to complete a task.

### Do

- Keep the content scrollable when content exceeds screen height

### Don't

- Don't use content area for primary actions. Use FullScreenModalLayout.Footer instead
- Don't duplicate actions or navigation that belong in FullScreenModalLayout.Header
- Don't use it for sticky layouts, use FullScreenModalLayout.Footer instead

### Feature examples

#### Scroll

Content that exceeds the viewport of the user's device will get cropped and the content area becomes scrollable.

```jsx
() => {
  const [isOpen, setIsOpen] = React.useState(false);

  const cards = Array.from({ length: 5 }, (_, index) => ({
    id: index + 1,
    title: 'Wix Stores',
    description: 'Professional eCommerce platform to sell online',
    priceLabel: 'Free to install',
    rating: '4.2',
    reviews: '(335)',
    imageSrc:
      'https://static.wixstatic.com/media/22e53e_a53027e61c334a428ee8fd64dd776792~mv2.png/v1/fill/w_42,h_42,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/22e53e_a53027e61c334a428ee8fd64dd776792~mv2.png',
  }));

  return (
    <Box padding="20px" gap="20px" direction="vertical">
      <Button onClick={() => setIsOpen(true)} prefixIcon={<Icons.Add />}>
        Scrollable content
      </Button>

      <Modal
        isOpen={isOpen}
        onRequestClose={() => setIsOpen(false)}
        transition="moveVertical"
      >
        <FullScreenModalLayout>
          <FullScreenModalLayout.Header
            startNode={
              <CloseButton
                skin="dark"
                size="large"
                onClick={() => setIsOpen(false)}
              />
            }
            endNode={
              <TextButton size="small" onClick={() => setIsOpen(false)}>
                Save
              </TextButton>
            }
          >
            <Text size="small" weight="normal">
              New dish
            </Text>
          </FullScreenModalLayout.Header>

          <FullScreenModalLayout.Content padding>
            <Box direction="vertical" gap="12px">
              {cards.map((card) => (
                <ClickableCard key={card.id} skin="shadow">
                  <Box gap="SP1" direction="vertical">
                    <Image width="42" src={card.imageSrc} />
                    <Text weight="bold">{card.title}</Text>
                    <Text size="small" weight="thin">
                      {card.description}
                    </Text>
                    <Box
                      verticalAlign="middle"
                      align="space-between"
                      paddingTop="SP4"
                    >
                      <Text size="tiny" secondary>
                        {card.priceLabel}
                      </Text>
                      <Box gap="SP1" verticalAlign="middle">
                        <Icons.FavoriteFilledSmall />
                        <Text size="tiny" weight="bold">
                          {card.rating}
                        </Text>
                        <Text secondary size="tiny">
                          {card.reviews}
                        </Text>
                      </Box>
                    </Box>
                  </Box>
                </ClickableCard>
              ))}
            </Box>
          </FullScreenModalLayout.Content>
        </FullScreenModalLayout>
      </Modal>
    </Box>
  );
};
```

#### Paddings

For layouts where you need extra paddings, use `paddings` property.

```jsx
() => {
  const [openFirstModal, setOpenFirstModal] = React.useState(false);
  const [openSecondModal, setOpenSecondModal] = React.useState(false);

  return (
    <StorybookComponents.Stack spacing="12px">
      {/* BUTTON 1 */}
      <Button onClick={() => setOpenFirstModal(true)}>Paddings on</Button>

      {/* BUTTON 2 */}
      <Button onClick={() => setOpenSecondModal(true)}>Paddings off</Button>

      {/* FIRST MODAL */}
      <Modal
        isOpen={openFirstModal}
        onRequestClose={() => setOpenFirstModal(false)}
        transition="moveVertical"
      >
        <FullScreenModalLayout>
          <FullScreenModalLayout.Header
            startNode={
              <CloseButton
                skin="dark"
                size="large"
                onClick={() => setOpenFirstModal(false)}
              />
            }
            endNode={
              <TextButton size="small" onClick={() => setOpenFirstModal(false)}>
                Save
              </TextButton>
            }
          >
            <Text size="small" weight="normal">
              Title
            </Text>
          </FullScreenModalLayout.Header>

          <FullScreenModalLayout.Content padding>
            <StorybookComponents.Placeholder height="100%" width="100%">
              Content for first modal
            </StorybookComponents.Placeholder>
          </FullScreenModalLayout.Content>
        </FullScreenModalLayout>
      </Modal>

      {/* SECOND MODAL */}
      <Modal
        isOpen={openSecondModal}
        onRequestClose={() => setOpenSecondModal(false)}
        transition="moveVertical"
      >
        <FullScreenModalLayout>
          <FullScreenModalLayout.Header
            startNode={
              <CloseButton
                skin="dark"
                size="large"
                onClick={() => setOpenSecondModal(false)}
              />
            }
          >
            <Text size="small" weight="normal">
              Title
            </Text>
          </FullScreenModalLayout.Header>

          <FullScreenModalLayout.Content>
            <StorybookComponents.Placeholder height="100%" width="100%">
              Content for second modal
            </StorybookComponents.Placeholder>
          </FullScreenModalLayout.Content>
        </FullScreenModalLayout>
      </Modal>
    </StorybookComponents.Stack>
  );
};
```

## Code

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

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `children` *(required)* | `ReactNode` | — | Accepts any content to render in the content area of the modal. |
| `dataHook` | `string` | — | Applies a data-hook HTML attribute that can be used in tests. |
| `padding` | `boolean` | `false` | If true, applies padding to the content. |

## Testkit

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

## Changelog

No released changes have been recorded for this component.