Skip to content

Commit abb258d

Browse files
committed
chore: fix documentation on custom render hooks (#260)
1 parent 5d8f393 commit abb258d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docs/docs/guides/rendering.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function App() {
4242
}}
4343
renderItemTitle={({ title }) => <span>{title}</span>}
4444
renderItemArrow={({ item, context }) =>
45-
item.isFolder ? context.isExpanded ? <span>{'v '}</span> : <span>{'> '}</span> : null
45+
item.isFolder ? <span {...context.arrowProps}>{context.isExpanded ? 'v ' : '> '}</span> : null
4646
}
4747
renderItem={({ title, arrow, depth, context, children }) => (
4848
<li

0 commit comments

Comments
 (0)