GitHub

Split Story Card

Block
Card block with split layout for storytelling with image and text

Installation

pnpm add @corew500/ui

Usage

import { SplitStoryCard } from "@corew500/ui/blocks/split-story-card"

<SplitStoryCard>Content</SplitStoryCard>

API Reference

Props

PropTypeDefaultDescription
sideA*StorySideLeft/top side of the story (e.g., the giver)
sideB*StorySideRight/bottom side of the story (e.g., the receiver)
connectionIconenumCustom icon rendered between the two sides. Defaults to ArrowLeftRight.
quote{ text: string; author: string; }Optional quote displayed below the split
footer{ label: string; value: string; }Optional footer with a label/value pair (e.g., "Result: Grew revenue 3x")
intentenumprimaryColor intent for border accents and side backgrounds
classNamestringAdditional CSS classes

Accessibility

Screen Readers

  • Connection icon is decorative (aria-hidden)

Additional

  • - Uses semantic heading (h3) for each side title
  • Quote uses blockquote element with footer for attribution