Open this example in the interactive library
Live preview
Source code
// components/LineHeightSampler.tsx
export default function LineHeightSampler({
text = "Copper studio",
}: { text?: string } = {}) {
return (
<div>
{[1.1, 1.5, 2].map((v) => (
<p key={v} style={{ lineHeight: v, border: "1px solid" }}>
{text}
<br />
{v} line height
</p>
))}
</div>
);
}
