Callout component for displaying highlighted information with specific styling.
Configuration object
Text content to display inside the callout
Type of callout which determines the visual styling. Defaults to 'info'
Basic usage with info callout
callout({ text: 'This is an informational message', type: 'info'}); Copy
callout({ text: 'This is an informational message', type: 'info'});
Usage with warning callout
callout({ text: 'This is a warning message', type: 'warning'}); Copy
callout({ text: 'This is a warning message', type: 'warning'});
Usage with dynamic text depending on other fields
callout({ text: async ({data}) => `Welcome back, ${data.userName}!`, type: 'info'}); Copy
callout({ text: async ({data}) => `Welcome back, ${data.userName}!`, type: 'info'});
Callout component for displaying highlighted information with specific styling.