Files
umami/src/app/(main)/boards/TextBlock.tsx
T
Mike Cao 8563fe1d30 Add TextBlock board component for free-form text content
New component that doesn't require a website, with textarea config
field. Added requiresWebsite flag to ComponentDefinition so board
components can opt out of the websiteId requirement.
2026-03-04 21:56:17 -08:00

11 lines
242 B
TypeScript

'use client';
import { Text } from '@umami/react-zen';
export function TextBlock({ text }: { text?: string }) {
if (!text) {
return null;
}
return <Text style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}>{text}</Text>;
}