# Split Card

Rounded two-column promo card with copy on one side and a picture or scene on the other, stacking when narrow. Flip swaps the sides, and a hairline divider beside the media is optional.

Component · Card · https://01orbital.dev/docs/components/split-card

## Installation

```bash
npx shadcn@latest add @01orbital/split-card
```

## Usage

```tsx
import { cn } from "cn"

import {
  SplitCard,
  SplitCardActions,
  SplitCardContent,
  SplitCardDescription,
  SplitCardHeader,
  SplitCardMedia,
  SplitCardTitle,
} from "@/components/card/split-card"
import {
  HairlineOrbitMark,
  HairlineOrbits,
} from "@/components/graphics/hairline-orbits"
import {
  Poster,
  PosterDescription,
  PosterFootnote,
  PosterLabel,
  PosterTitle,
} from "@/components/poster/poster"
import {
  Section,
  SectionContent,
} from "@/components/section/section"
import { buttonVariants } from "@/components/ui/button"

const COPY = {
  title: "The economics of delivering on a system",
  body: "A study of build time, review cycles and coherence across fifty launches.",
  cta: "Download",
  label: "01orbital.",
  posterTitle: "The economics of delivering on a system",
  posterBody: "Cost savings and coherence with the kit",
  footnote: "A study of fifty launches, 2026",
} as const

export default function SplitCardDemo() {
  return (
    <Section>
      <SectionContent className="items-center">
        <SplitCard className="w-full max-w-5xl dark:surface-sheen">
          <SplitCardContent>
            <SplitCardHeader>
              <SplitCardTitle>{COPY.title}</SplitCardTitle>
              <SplitCardDescription>{COPY.body}</SplitCardDescription>
            </SplitCardHeader>
            <SplitCardActions>
              <a
                href="#"
                data-slot="button"
                className={cn(
                  buttonVariants({ variant: "secondary", size: "lg" })
                )}
              >
                {COPY.cta}
              </a>
            </SplitCardActions>
          </SplitCardContent>
          <SplitCardMedia divider={false}>
            <HairlineOrbits />
            <Poster className="dark rotate-3 text-shadow-legible">
              <img
                src="https://01orbital.dev/art/kit/layered-currents-415686.png"
                alt=""
                loading="lazy"
              />
              <PosterLabel>{COPY.label}</PosterLabel>
              <PosterTitle>{COPY.posterTitle}</PosterTitle>
              <PosterDescription>{COPY.posterBody}</PosterDescription>
              <HairlineOrbitMark className="mt-8" />
              <PosterFootnote>{COPY.footnote}</PosterFootnote>
            </Poster>
          </SplitCardMedia>
        </SplitCard>
      </SectionContent>
    </Section>
  )
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/split-card-demo
```

## API reference

### SplitCard

A wide card with copy on one side and a picture or scene on the other. Compose it from its parts: a `SplitCardContent` holding a `SplitCardHeader` (meta, `SplitCardTitle`, `SplitCardDescription`) and `SplitCardActions`, then a `SplitCardMedia`. It is the kit's `Card` and its parts, styled. Every part takes `className`.

It responds to the screen: the two halves stack on small screens and sit side by side from the `md` breakpoint (48rem), where the padding, title size and divider change too; the padding grows again from `lg`. As in the stock Card, the header is the `card-header` container.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `flip?` | `boolean` | `false` | Once the halves sit side by side, puts the media on the left. |

### SplitCardMedia

The picture half: at least 24rem tall, centered and clipped. A scene fills it with `absolute inset-0`; an `img` needs `size-full object-cover`. `divider` (on by default) draws the hairline between the halves: along the top while they stack, along the inner edge once they sit side by side.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `divider?` | `boolean` | `true` | The hairline between the copy and the media. `false` removes it at every width. |

## Dependencies

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

- [Card](https://01orbital.dev/docs/components/card)
- [Text](https://01orbital.dev/docs/components/text)

The shadcn parts here are their Base UI versions, and this piece uses Base UI's API. A Radix version you already have won't work with it.

npm: `cn`

## Examples

- **Split Card Frost Moon Reversed** (`@01orbital/split-card-frost-moon-reversed`): Example of the Split Card, reversed, with a frosted surface and a moon sphere on the left, a serif title and two links.
- **Split Card Outline Workshop Calendar** (`@01orbital/split-card-outline-workshop-calendar`): Example of the Split Card: a square, outlined card on paper with a November calendar beside the workshop copy and a closed note with the afternoon's plan.
- **Split Card Plum Blue Hour Window** (`@01orbital/split-card-plum-blue-hour-window`): Example of the Split Card, reversed, with a glass pane surface and a blue hour scene in a rounded window on the left, a link and a save button.

## Used in blocks

- [Alternating Case Study Split Cards](https://01orbital.dev/docs/blocks/case-studies-03)
- [Case Study Download](https://01orbital.dev/docs/blocks/case-study-download-01)
- [Dark Featured Report Download](https://01orbital.dev/docs/blocks/report-download-01)
- [Eclipse Newsletter](https://01orbital.dev/docs/blocks/eclipse-newsletter-01)
- [Exhibition Card](https://01orbital.dev/docs/blocks/exhibition-card-01)
- [Featured Post](https://01orbital.dev/docs/blocks/featured-post-01)
- [Pool Waitlist](https://01orbital.dev/docs/blocks/pool-waitlist-01)
- [Split Color Wash Feature Cards](https://01orbital.dev/docs/blocks/feature-cards-02)
- [Weekly Delivery Summary](https://01orbital.dev/docs/blocks/split-card-blue-progress-rings)
