apps/mantine.dev/src/pages/changelog/7-10-0.mdx
import { CheckboxDemos, FormDemos, RadioDemos, SimpleGridDemos, TreeDemos, } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.Changelog7100);
New Tree component:
<Demo data={TreeDemos.files} />New form.getInputNode(path) handler returns input DOM node for the given field path.
Form example, it can be used to focus input on form submit if there is an error:
You can now use container queries in SimpleGrid component. With container queries, grid columns and spacing will be adjusted based on the container width, not the viewport width.
Example of using container queries. To see how the grid changes, resize the root element of the demo with the resize handle located at the bottom right corner of the demo:
<Demo data={SimpleGridDemos.container} />New Checkbox.Indicator and Radio.Indicator
components look exactly the same as Checkbox and Radio components, but they do not
have any semantic meaning, they are just visual representations of checkbox and radio states.
Checkbox.Indicator component:
Radio.Indicator component:
New Checkbox.Card and Radio.Card
components can be used as replacements for Checkbox and Radio to build custom cards/buttons/etc.
that work as checkboxes and radios. Components are accessible by default and support the same
keyboard interactions as input[type="checkbox"] and input[type="radio"].
Checkbox.Card component:
Checkbox.Card component with Checkbox.Group:
Radio.Card component:
Radio.Card component with Radio.Group:
New bd style prop can be used to set border CSS property.
It is available in all components that support style props.
Border width value is automatically converted to rem. For border color you can reference theme colors similar to other style props:
import { Box } from '@mantine/core';
function Demo() {
return <Box bd="1px solid red.5" />;
}