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:
1 parent
f0977321bd
commit
8563fe1d30
5 files changed
+66
-19
No files matched your search
@@ -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>;
|
||||
}
|
||||
Reference in new issue
Block a user