apps/mantine.dev/src/pages/changelog/7-13-0.mdx
import { BarChartDemos, CompositeChartDemos, FloatingIndicatorDemos, GridDemos, LineChartDemos, ScatterChartDemos, SliderDemos, } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.Changelog7130);
You can now use container queries in Grid component. With container queries, all responsive values are 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={GridDemos.container} />New CompositeChart component allows using Line, Area and Bar charts together in a single chart:
LineChart and AreaChart now support withPointLabels prop to display labels on data points:
ScatterChart also supports point labels, but also allows to control which axis should display labels with pointLabels prop:
You can now control how BarChart series are stacked by setting stackId property in series object:
BarChart now supports minBarSize prop to set the minimum size of the bar in px:
A new example of adding a custom variant to Tabs component with FloatingIndicator:
<Demo data={FloatingIndicatorDemos.tabs} />Example of use-move hook usage to create a custom slider:
<Demo data={SliderDemos.customSlider} />