Open this example in the interactive library
Source code
// app/editorial/page.tsx
export default function PrintableAssignmentSlips() {
const posts = [
{ title: "Paper mills", day: "2028-04-01", desk: "News", words: 840 },
{ title: "At the kiln", day: "2028-04-03", desk: "Art", words: 1500 },
{ title: "City briefs", day: "2028-04-03", desk: "News", words: 540 },
];
return (
<main>
{posts.map((p) => (
<article
style={{ breakInside: "avoid", borderBottom: "1px dashed" }}
key={p.title}
>
<h2>{p.title}</h2>
<p>
{p.desk} · {p.day} · {p.words} words
</p>
</article>
))}
</main>
);
}
