Block 14 of 297
Content + Image
Editorial text with a checklist and link beside a captioned image. The workhorse section.
- Puck key
- ContentSplitBlock
- Export
- contentSplitBlock
- React component
- <ContentSplit />
- Path
- components/puck/content-split-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A photo on one side and a heading, a few paragraphs, an optional checklist and one button on the other. The image can sit left or right on desktop, takes an optional caption, and always comes first on phones. Leave the image out and the copy narrows to a single centered reading column. It is a general-purpose block for explaining one idea in depth.
- A volunteer or membership pitch with a list of what's included
- An About section pairing a story with a team or site photo
- Alternating explainer sections on a program page
Writing the content
- Separate paragraphs in Body with a blank line; each becomes its own paragraph.
- Keep the Checklist to three to five short points. It allows up to eight, and removing every item hides it.
- Use Image caption for a credit, place or date; it shows under the photo with a small accent rule.
- The photo crops to 4:3 on phones and 5:6 on desktop, so keep the subject near the center.
Accessibility
- The photo and caption are wrapped in figure and figcaption, so the caption is associated with the image (WCAG 1.3.1).
- Image alt text comes from the editor, and the Heading level field changes the tag without changing the look.
- Checkmark icons are aria-hidden, and the button has a visible focus outline at 44px minimum height.
Customizing the code
- Indigo marks the eyebrow, checkmarks, caption rule and button; replace the indigo- classes to rebrand.
- Change the crop with aspect-[4/3] and lg:aspect-[5/6] on the img.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtextarea
- Heading levelselect
- Bodytextarea
- Checklistarray
- Link texttext
- Linktext
- Image URLtext
- Image alt texttext
- Image captiontext
- Image sideradio