@chakra-ui/core#AlertIcon JavaScript Examples

The following examples show how to use @chakra-ui/core#AlertIcon. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: error.js    From space-rockets-challenge with MIT License 6 votes vote down vote up
export default function Error() {
  return (
    <Flex alignItems="center" justifyContent="center" width="100%">
      <Alert
        status="error"
        variant="left-accent"
        flexDirection="column"
        justifyContent="center"
        textAlign="center"
        p="8"
      >
        <AlertIcon size="6" mr={0} />
        <AlertTitle mt={4} mb={1} fontSize="lg">
          Problems loading the data
        </AlertTitle>
        <AlertDescription maxWidth="md">
          If the problem persists, try to refresh the page or wait a few minutes
          and try again.
        </AlertDescription>
      </Alert>
    </Flex>
  );
}