> 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: Card.Divider Component

## Article: Card.Divider Component

## Article Link: https://dev.wix.com/docs/wix-design-system/components/layout/card/card-divider-component.md

## Article Content:

# Card.Divider

_Components/Layout/Card_

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

## Overview

```jsx
<Card>
  <Card.Divider />
</Card>;
```

A card divider is a horizontal line that separates the card content into clear sections. It extends to the full width of the container and is a compound component of the `<Card/>`.

### Do

- Separate `<Card.Header/>` from `<Card.Content/>`.
- Organize card content into sections.

### Don't

- Don't use card dividers outside of `<Card/>` components. Use the standard `<Divider/>` instead.
- Don't overuse dividers. Use white space whenever possible.

### Common use case examples

#### Header separation

Use the `<Card.Divider/>` to separate the header from the content area.

```jsx
() => {
  const [value, setValue] = React.useState(50);

  return (
    <Card>
      <Card.Header
        title="Attachment size"
        subtitle="Save storage space by setting a file size limit."
      />
      <Card.Divider />
      <Card.Content>
        <Layout>
          <Cell>
            <FormField label="Set a max file size (MB)">
              <Box gap="12px">
                <Box display="block" width="100%">
                  <Slider
                    onChange={(v) => setValue(Number(v))}
                    min={0}
                    max={500}
                    value={value}
                    displayMarks={false}
                  />
                </Box>
                <Box width="60px">
                  <Input
                    value={value}
                    onChange={(e) => setValue(Number(e.target.value))}
                  />
                </Box>
              </Box>
            </FormField>
          </Cell>
        </Layout>
      </Card.Content>
    </Card>
  );
};
```

#### Content grouping

Use the `<Card.Divider/>` to structure information inside the card.

```jsx
() => {
  const [checked, setChecked] = React.useState({
    vegan: false,
    vegetarian: false,
    glutenFree: false,
    organic: false,
  });
  return (
    <Card>
      <Card.Header title="New dish" />
      <Card.Divider />
      <Card.Content>
        <Layout>
          <Cell span={4}>
            <FormField label="Image">
              <ImageViewer width="100%" height="180px" />
            </FormField>
          </Cell>
          <Cell span={8}>
            <Layout>
              <Cell span={6}>
                <FormField label="Name">
                  <Input value="" />
                </FormField>
              </Cell>
              <Cell span={3}>
                <FormField label="Price">
                  <Input value="0" prefix={<Input.Affix>$</Input.Affix>} />
                </FormField>
              </Cell>
              <Cell span={3}>
                <FormField label="Tax">
                  <Input value="0" prefix={<Input.Affix>%</Input.Affix>} />
                </FormField>
              </Cell>
              <Cell>
                <FormField label="Description">
                  <InputArea
                    placeholder="Enter more details about the dish."
                    resizable
                    rows={3}
                  />
                </FormField>
              </Cell>
            </Layout>
          </Cell>
          <Cell span={12}>
            <Card.Divider />
          </Cell>
          <Cell span={12}>
            <FormField label="Labels">
              <Box direction="horizontal" gap="4">
                <Checkbox
                  onChange={() =>
                    setChecked({ ...checked, vegan: !checked.vegan })
                  }
                  checked={checked.vegan}
                >
                  Vegan
                </Checkbox>
                <Checkbox
                  checked={checked.vegetarian}
                  onChange={() =>
                    setChecked({ ...checked, vegetarian: !checked.vegetarian })
                  }
                >
                  Vegetarian
                </Checkbox>
                <Checkbox
                  checked={checked.glutenFree}
                  onChange={() =>
                    setChecked({ ...checked, glutenFree: !checked.glutenFree })
                  }
                >
                  Gluten Free
                </Checkbox>
                <Checkbox
                  checked={checked.organic}
                  onChange={() =>
                    setChecked({ ...checked, organic: !checked.organic })
                  }
                >
                  Organic
                </Checkbox>
              </Box>
            </FormField>
          </Cell>
        </Layout>
      </Card.Content>
    </Card>
  );
};
```

## Code

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

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `dataHook` | `string` | — | Applied as data-hook HTML attribute that can be used in the tests. |
| `direction` | `"horizontal" \| "vertical"` | — | The direction of the divider. |
| `skin` | `"warning" \| "standard" \| "light" \| "destructive" \| "premium" \| "dark" \| "success"` | — | The skin of the divider. |

## Testkit

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

## Changelog

No released changes have been recorded for this component.