Skip to content

Commit 748550c

Browse files
Merge branch 'main' into patch-7
2 parents b15f695 + 603a367 commit 748550c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/routes/reference/components/show.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ The Show control flow is used to conditional render part of the view: it renders
99
import { Show } from "solid-js"
1010
import type { JSX } from "solid-js"
1111

12-
function Show<T>(props: {
12+
function Show<T, K>(props: {
1313
when: T | undefined | null | false
1414
keyed: boolean
1515
fallback?: JSX.Element
16-
children: JSX.Element | ((item: T) => JSX.Element)
16+
children: JSX.Element | ((item: T | Accessor<T>) => JSX.Element)
1717
}): () => JSX.Element
1818
```
1919

@@ -33,6 +33,8 @@ Show can also be used as a way of keying blocks to a specific data model. For ex
3333
</Show>
3434
```
3535

36+
If the `keyed` property is not used, the argument of a child function will be an accessor containing the item.
37+
3638
## Props
3739

3840
| Name | Type | Description |

0 commit comments

Comments
 (0)