This component provides the commonly used Close Button with an icon.
It is also used under other components in Frontile, for example Modal
and Drawer
Arg | Type | Description | Required | Default |
---|---|---|---|---|
onClick
|
(event: Event) => void
|
The function to call when button is clicked | - | - |
size
|
'xs' | 'sm' | 'lg' | 'xl' | 'md'
|
The icon size | - |
'lg'
|