Skip to content

Commit 0a72a2e

Browse files
[charts-premium] Extract HeatmapSVGPlot from HeatmapPlot component
1 parent 599a331 commit 0a72a2e

File tree

13 files changed

+664
-154
lines changed

13 files changed

+664
-154
lines changed

docs/pages/x/api/charts/heatmap-plot.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
2-
"props": {
3-
"borderRadius": { "type": { "name": "number" } },
4-
"slotProps": { "type": { "name": "object" }, "default": "{}" },
5-
"slots": {
6-
"type": { "name": "object" },
7-
"default": "{}",
8-
"additionalInfo": { "slotsApi": true }
9-
}
10-
},
2+
"props": {},
113
"name": "HeatmapPlot",
124
"imports": [
135
"import { HeatmapPlot } from '@mui/x-charts-pro/Heatmap';",
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"componentDescription": "",
3-
"propDescriptions": {
4-
"borderRadius": { "description": "The border radius of the heatmap cells in pixels." },
5-
"slotProps": { "description": "The props used for each component slot." },
6-
"slots": { "description": "Overridable component slots." }
7-
},
3+
"propDescriptions": {},
84
"classDescriptions": {},
95
"slotDescriptions": { "cell": "The component that renders the heatmap cell." }
106
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use client';
2+
import { HeatmapSVGPlot, type HeatmapRendererPlotProps } from '@mui/x-charts-pro/internals';
3+
4+
export interface HeatmapPlotPremiumProps extends HeatmapRendererPlotProps {}
5+
6+
export function HeatmapPlotPremium({ borderRadius, ...props }: HeatmapPlotPremiumProps) {
7+
return <HeatmapSVGPlot borderRadius={borderRadius} {...props} />;
8+
}

0 commit comments

Comments
 (0)