mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-09 20:12:02 +10:00
29 lines
756 B
TypeScript
29 lines
756 B
TypeScript
import '@mantine/core/styles.css';
|
|
|
|
import React from 'react';
|
|
import { ColorSchemeScript, MantineProvider } from '@mantine/core';
|
|
import { theme } from '../theme';
|
|
|
|
export const metadata = {
|
|
title: 'Mantine Next.js template',
|
|
description: 'I am using Mantine with Next.js!',
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: any }) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
<ColorSchemeScript />
|
|
<link rel="shortcut icon" href="/favicon.svg" />
|
|
<meta
|
|
name="viewport"
|
|
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
|
|
/>
|
|
</head>
|
|
<body>
|
|
<MantineProvider theme={theme}>{children}</MantineProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|