Cookie notice
A small card that asks to allow cookies, with a close button.
A small card that asks to allow cookies, with a close button.
npm install @mantine/core
First time with Mantine UI? Set it up once.
/**
* Component from Mantine UI, https://ui.mantine.dev
* MIT License, Copyright (c) 2022 Vitaly Rtischev. Full text: https://github.com/mantinedev/ui.mantine.dev/blob/master/LICENCE
*/
import { Button, CloseButton, Group, Paper, Text } from '@mantine/core';
export function CookiesBanner() {
return (
<Paper withBorder p="lg" radius="md" shadow="md">
<Group justify="space-between" mb="xs">
<Text fz="md" fw={500}>
Allow cookies
</Text>
<CloseButton mr={-9} mt={-9} aria-label="Close cookie banner" />
</Group>
<Text c="dimmed" fz="xs">
So the deal is, we want to spy on you. We would like to know what did you have for todays
breakfast, where do you live, how much do you earn and like 50 other things. To view our
landing page you will have to accept all cookies. That's all, and remember that we are
watching...
</Text>
<Group justify="flex-end" mt="md">
<Button variant="default" size="xs">
Cookies preferences
</Button>
<Button variant="outline" size="xs">
Accept all
</Button>
</Group>
</Paper>
);
}