Creates a callout component for displaying highlighted information with specific styling.
Configuration object
A JSX element representing the callout component
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 from central state
callout({ text: async (state) => `Welcome back, ${state.userName}!`, type: 'info'}); Copy
callout({ text: async (state) => `Welcome back, ${state.userName}!`, type: 'info'});
Creates a callout component for displaying highlighted information with specific styling.