Block 28 of 297
Long-form Text
Editorial prose at a comfortable measure with a lead, drop cap, placed pull quote and side note.
- Puck key
- LongFormTextBlock
- Export
- longFormTextBlock
- React component
- <LongFormText />
- Path
- components/puck/long-form-text-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
An editorial prose block set to a comfortable reading width, with a serif heading, byline, larger lead paragraph and a body that supports bullet lists. An optional drop cap opens the first paragraph, a pull quote can be placed after a chosen paragraph, and a side note sticks beside the text on wide screens. On phones the side note follows the article.
- Feature stories and community profiles
- Annual report or impact narratives
- Op-eds, letters from the director or longer blog posts
Writing the content
- Separate paragraphs in Body with a blank line; a block where every line starts with "- " becomes a bulleted list.
- Place pull quote after counts paragraphs and lists alike, and puts the quote at the end if the body is shorter than the number you pick.
- Use a line that actually appears in the story for the Pull quote, and name the speaker in Pull quote source.
- Turn Drop cap on for features and off for notices or policy text; leave Heading blank when continuing a story above.
Accessibility
- The text sits in an article with a header, the pull quote is a blockquote in a figure with a figcaption, and the side note is an aside landmark named by its title (WCAG 1.3.1).
- Decorative curly quote marks and rules are aria-hidden, so the quote is read once, cleanly.
- The drop cap uses CSS first-letter, so the word stays intact for screen readers and copy and paste.
Customizing the code
- The drop cap is the first-letter: classes on the first paragraph, using text-7xl and text-indigo-700.
- The side note sticks at lg:top-24 with lg:mt-48; adjust both to your header height and layout.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtextarea
- Heading levelselect
- Bylinetext
- Lead paragraphtextarea
- Bodytextarea
- Drop capradio
- Pull quotetextarea
- Pull quote sourcetext
- Place pull quote afterselect
- Side note titletext
- Side notetextarea