Text component for displaying static or dynamic text content.
Configuration object
Text content to display. Can be either a static string or a function that receives params with data and value, returning a string
Basic usage with static text
text({ text: 'Hello, World!'}); Copy
text({ text: 'Hello, World!'});
Usage with dynamic text from params with data and value
text({ text: ({data}) => `Welcome back, ${data.userName}!`}); Copy
text({ text: ({data}) => `Welcome back, ${data.userName}!`});
Usage with info callout text
text({ text: ':::info\nThis is an informational message\n:::'}); Copy
text({ text: ':::info\nThis is an informational message\n:::'});
Usage with warning callout text
text({ text: ':::warn\nThis is a warning message\n:::'}); Copy
text({ text: ':::warn\nThis is a warning message\n:::'});
Text component for displaying static or dynamic text content.