The CloseButton component is an extension of the IconButton component with default props for use as a button for closing modal dialogs and other UI components.
CloseButton
IconButton
<Flex p={2} color='primary'> <Box mx='auto' /> <CloseButton /> </Flex>