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.
This commit is contained in:
Mike Cao committed 2026-03-04 21:56:17 -08:00
1 parent f0977321bd
commit 8563fe1d30
5 files changed
+66 -19

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
'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>;
}