@@ -20,7 +20,7 @@ interface Props {
20
20
row : number ;
21
21
column : number ;
22
22
} ;
23
- autoheight ?: boolean ;
23
+ rowAutoHeight ?: boolean ;
24
24
}
25
25
const Grid = ( { columnCount, rowCount, focus : focusProp , ...props } : Props ) => {
26
26
const [ focus , setFocus ] = useState ( focusProp ) ;
@@ -72,7 +72,7 @@ const Grid = ({ columnCount, rowCount, focus: focusProp, ...props }: Props) => {
72
72
} ) ;
73
73
} }
74
74
getMenuOptions = { getMenuOptions }
75
- autoheight = { props . autoheight }
75
+ rowAutoHeight = { props . rowAutoHeight }
76
76
{ ...props }
77
77
/>
78
78
</ div >
@@ -128,14 +128,14 @@ export const AutoHeightWithVariableData = {
128
128
args : {
129
129
rowCount : 10 ,
130
130
columnCount : 5 ,
131
- autoheight : true ,
131
+ rowAutoHeight : true ,
132
132
rowStart : 0 ,
133
133
} ,
134
134
parameters : {
135
135
docs : {
136
136
source : {
137
137
transform : ( _ : string , story : { args : Props ; [ x : string ] : unknown } ) => {
138
- const { rowCount, columnCount, autoheight , ...props } = story . args ;
138
+ const { rowCount, columnCount, rowAutoHeight , ...props } = story . args ;
139
139
return `
140
140
const VariableCell: CellProps = ({ type, rowIndex, columnIndex, isScrolling, width, ...props }) => {
141
141
let content = \`Row \${rowIndex}, Col \${columnIndex}\${rowIndex % 2 === 0 ? '\\nExtra line' : ''}\`;
@@ -175,7 +175,7 @@ SETTINGS index_granularity = 8192;\`;
175
175
cell={VariableCell}
176
176
focus={{ row: 0, column: 0 }}
177
177
columnWidth={() => 300}
178
- autoheight ={${ autoheight } }
178
+ rowAutoHeight ={${ rowAutoHeight } }
179
179
${ Object . entries ( props )
180
180
. flatMap ( ( [ key , value ] ) =>
181
181
typeof value === "boolean"
0 commit comments