File tree Expand file tree Collapse file tree 3 files changed +40
-3
lines changed
translations/api-docs/charts/heatmap-plot
packages/x-charts-pro/src/Heatmap Expand file tree Collapse file tree 3 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 11{
2- "props" : {},
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+ },
311 "name" : " HeatmapPlot" ,
412 "imports" : [
513 " import { HeatmapPlot } from '@mui/x-charts-pro/Heatmap';" ,
Original file line number Diff line number Diff line change 11{
22 "componentDescription" : " " ,
3- "propDescriptions" : {},
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+ },
48 "classDescriptions" : {},
59 "slotDescriptions" : { "cell" : " The component that renders the heatmap cell." }
610}
Original file line number Diff line number Diff line change 11'use client' ;
2+ import * as React from 'react' ;
3+ import PropTypes from 'prop-types' ;
24import { HeatmapSVGPlot } from './HeatmapSVGPlot' ;
35import { type HeatmapRendererPlotProps } from './Heatmap.types' ;
46
57export interface HeatmapPlotProps extends HeatmapRendererPlotProps { }
68
7- export function HeatmapPlot ( { borderRadius, ...props } : HeatmapPlotProps ) {
9+ function HeatmapPlot ( { borderRadius, ...props } : HeatmapPlotProps ) : React . ReactNode {
810 return < HeatmapSVGPlot borderRadius = { borderRadius } { ...props } /> ;
911}
12+
13+ HeatmapPlot . propTypes = {
14+ // ----------------------------- Warning --------------------------------
15+ // | These PropTypes are generated from the TypeScript type definitions |
16+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
17+ // ----------------------------------------------------------------------
18+ /**
19+ * The border radius of the heatmap cells in pixels.
20+ */
21+ borderRadius : PropTypes . number ,
22+ /**
23+ * The props used for each component slot.
24+ * @default {}
25+ */
26+ slotProps : PropTypes . object ,
27+ /**
28+ * Overridable component slots.
29+ * @default {}
30+ */
31+ slots : PropTypes . object ,
32+ } as any ;
33+
34+ export { HeatmapPlot } ;
You can’t perform that action at this time.
0 commit comments