Open this example in the interactive library
Live preview
Source code
// components/DirectionComparison.tsx
export default function DirectionComparison({
text = "Copper studio",
}: { text?: string } = {}) {
return (
<section>
{(["ltr", "rtl"] as const).map((dir) => (
<p dir={dir} key={dir}>
{dir} · {text}
</p>
))}
</section>
);
}
