ActionIcon
https://mantine.dev/core/action-icon/
icon button
ActionIcon serves the "icon as a button" pattern. UI-wise, the idea is that the icon is expressive enough to be self-explanatory, with no need for accompanying text, for example the "trash" icon refers to the "delete" action.
Technically it is a container that is distinct from the icon, that must be added as a child.
It gives its child icon the behaviour of a button, and it customizes its appearance according to the selected variant.
variant
: same variants as Button's variants. To get a naked icon effect, we select subtle or transparent.size
: the container's size impacts the hover and active zone, and the icon scale.
required child icon
As a wrapper, it impacts the concrete child icon.
We may still set size directly on the child Icon.
<ActionIcon variant='default'>
<IconMail size={14} stroke={..?}/>
</ActionIcon>