Skip to content

Commit c3fad4e

Browse files
committed
Tweaked docs
1 parent e07ce92 commit c3fad4e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/routes/list/ListFixedRowHeight.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { names } from "../../data";
55
import { Block } from "../../components/Block";
66
import { Callout } from "../../components/Callout";
77
import { ExternalLink } from "../../components/ExternalLink";
8+
import { Link } from "react-router-dom";
89

910
export 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
7986
function Row({ index, names, style }) {
8087
return (
8188
<div style={style}>

0 commit comments

Comments
 (0)