Mantine v6.0.0 has been released but with lots of breaking changes #16
Replies: 7 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
I tried it seems like mantine v6 works with this library |
Beta Was this translation helpful? Give feedback.
-
When Mantine React Table being used inside Mantine's App-Shell, the table is hidden beneath the NavBar. Just in case the StackBlitz example isn't available. The main parts to reproduce: const Content = () => {
return (
<>
<Flex
mih={50}
bg="rgba(0, 0, 0, .3)"
gap="md"
justify="flex-start"
align="flex-start"
direction="row"
wrap="wrap"
>
<Button>Button 1</Button>
<Button>Button 2</Button>
<Button>Button 3</Button>
</Flex>
<div>
<TestTable />
</div>
</>
);
};
const content = [
{ name: 'one', value: 'one' },
{ name: 'two', value: 'two' },
];
const TestTable = () => {
const columns = useMemo(() => [
{
accessorKey: 'name',
header: 'Name',
},
{
accessorKey: 'value',
header: 'Value',
},
]);
return (
<MantineReactTable
columns={columns}
data={content}
mantineTableProps={{
striped: true,
}}
/>
);
};
const theme = {
// Override any other properties from default theme
colorScheme: 'light',
fontFamily: 'Open Sans, sans serif',
spacing: { xs: 15, sm: 20, md: 25, lg: 30, xl: 40 },
headings: {
fontFamily: 'Roboto, sans-serif',
sizes: {
h1: { fontSize: 30 },
},
},
};
function App() {
return (
<MantineProvider theme={theme} withGlobalStyles withNormalizeCSS>
<AppShell
padding="md"
navbar={
<Navbar width={{ base: 180 }} height={330} p="xs" gap="10">
<Box sx={{ width: 150 }}>
<Stack>
<Button>One</Button>
<Button>Two</Button>
</Stack>
</Box>
</Navbar>
}
header={
<Header height={60} p="xs">
Header
</Header>
}
})}
>
<Content />
</AppShell>
</MantineProvider>
); |
Beta Was this translation helpful? Give feedback.
-
The table style is correct though. I dont have issue with it with version 6. Use the documentation of mantine 6 for the app shell. Im sure you could figure it out. |
Beta Was this translation helpful? Give feedback.
-
The reason is the theming. spacing: { xs: 15, sm: 20, md: 25, lg: 30, xl: 40 }, whilst the Theme example of the current version includes this spacing values: spacing: { xs: '1rem', sm: '1.2rem', md: '1.8rem', lg: '2.2rem', xl: '2.8rem' }, Applying the latter when using v6 or skipping the spacing altogether results in the expected result. |
Beta Was this translation helpful? Give feedback.
-
I just noticed that when using Mantine-React-Table with Mantine 6.0.4 (just the simple table from above as only element of the App) I'm seeing this warning
|
Beta Was this translation helpful? Give feedback.
-
mantine-react-table v1.0.0-beta.1 has just been released. Most of the compatibility bugs have been addressed. |
Beta Was this translation helpful? Give feedback.
-
Mantine UI. Version 6.0.0 appears to have introduced numerous breaking changes, which could be a challenge for some users, I'm curious, how do you plan to approach this change? For me, It will take me a lot of work to catch up with that version. I'll probably have to leave some legacy behind for a while.
Beta Was this translation helpful? Give feedback.
All reactions