Configuration object
Icon to display. Can be either a static IconKey or a function that receives params with data and value, returning an IconKey
Size of the icon box in pixels
Background color of the box. Can be either a static string or a function that receives params with data and value, returning a string
Color of the icon. Can be either a static string or a function that receives params with data and value, returning a string
Additional CSS classes
Margin values
Basic usage with static values
iconBox({
icon: 'user',
size: 32,
boxColor: '#e3f2fd',
iconColor: '#1976d2'
});
Icon box component for displaying icons within a colored container box.