@@ -5,6 +5,7 @@ import { names } from "../../data";
55import { Block } from "../../components/Block" ;
66import { Callout } from "../../components/Callout" ;
77import { ExternalLink } from "../../components/ExternalLink" ;
8+ import { Link } from "react-router-dom" ;
89
910export function ListFixedRowHeightRoute ( ) {
1011 return (
@@ -21,14 +22,14 @@ export function ListFixedRowHeightRoute() {
2122 />
2223 </ Block >
2324 < div > Rendering this type of list requires the following props:</ div >
24- < ul className = "pl-4 " >
25- < li >
25+ < ul className = "pl-6 " >
26+ < li className = "list-disc" >
2627 Number of rows to render (< code > length</ code > )
2728 </ li >
28- < li >
29+ < li className = "list-disc" >
2930 Row height in pixels (< code > rowHeight</ code > )
3031 </ li >
31- < li >
32+ < li className = "list-disc" >
3233 Row component (< code > rowComponent</ code > )
3334 </ li >
3435 </ ul >
@@ -43,6 +44,10 @@ export function ListFixedRowHeightRoute() {
4344 also be set by < code > className</ code > or as determined by the parent
4445 component's layout.
4546 </ Callout >
47+ < div >
48+ For lists of rows with different sizes,{ " " }
49+ < Link to = "/list/variable-row-heights" > keep reading</ Link > .
50+ </ div >
4651 </ Box >
4752 ) ;
4853}
@@ -76,6 +81,8 @@ function ListOfNames({ names }) {
7681 );
7782}
7883
84+ // This component accepts a "names" prop
85+ // because it was passed to the List "rowProps" object
7986function Row({ index, names, style }) {
8087 return (
8188 <div style={style}>
0 commit comments