@@ -95,6 +95,10 @@ export type ListItemProps = {
95
95
* This will force the background color of the ListItem to be used even if it is closed and not hovered.
96
96
*/
97
97
shouldForceBackground ?: boolean ;
98
+ /**
99
+ * Whether the line should be forced, e.g., so that it is also displayed if the item is the last element in the list.
100
+ */
101
+ shouldForceBottomLine ?: boolean ;
98
102
/**
99
103
* Whether the hover item should be forced.
100
104
*/
@@ -129,7 +133,7 @@ export type ListItemProps = {
129
133
*/
130
134
shouldRenderClosed ?: boolean ;
131
135
/**
132
- * Whether the image or icon should be displayed in a round shape. This should be always used for images of persons.
136
+ * Whether the image or icon should be displayed in a round shape. This should always be used for images of persons.
133
137
*/
134
138
shouldShowRoundImageOrIcon ?: boolean ;
135
139
/**
@@ -167,15 +171,16 @@ const ListItem: FC<ListItemProps> = ({
167
171
onOpen,
168
172
rightElements,
169
173
shouldForceBackground = false ,
174
+ shouldForceBottomLine = false ,
175
+ shouldForceHover = false ,
170
176
shouldHideBottomLine = false ,
177
+ shouldOpenImageOnClick = false ,
171
178
shouldHideImageOrIconBackground,
172
179
shouldHideIndicator = false ,
173
- shouldOpenImageOnClick = false ,
174
180
shouldPreventLayoutAnimation = false ,
181
+ shouldRenderClosed = false ,
175
182
shouldShowRoundImageOrIcon,
176
183
shouldShowSeparatorBelow = false ,
177
- shouldForceHover = false ,
178
- shouldRenderClosed = false ,
179
184
subtitle,
180
185
title,
181
186
titleElement,
@@ -261,6 +266,7 @@ const ListItem: FC<ListItemProps> = ({
261
266
$isOpen = { isItemOpen }
262
267
$isWrapped = { isWrapped }
263
268
$shouldForceBackground = { shouldForceBackground }
269
+ $shouldForceBottomLine = { shouldForceBottomLine }
264
270
$shouldHideBottomLine = { shouldHideBottomLine }
265
271
$shouldHideIndicator = { shouldHideIndicator }
266
272
$shouldShowSeparatorBelow = { shouldShowSeparatorBelow }
0 commit comments