Open this example in the interactive library
Live preview
Source code
// components/BalancedHeadlinePreview.tsx
export default function BalancedHeadlinePreview({
text = "Copper studio",
}: { text?: string } = {}) {
return (
<h2
style={{
textWrap: "balance",
maxWidth: "15ch",
fontSize: "clamp(2rem,6vw,4rem)",
}}
>
{text}
</h2>
);
}
