File tree 1 file changed +4
-2
lines changed
src/routes/reference/components
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ The Show control flow is used to conditional render part of the view: it renders
9
9
import { Show } from " solid-js"
10
10
import type { JSX } from " solid-js"
11
11
12
- function Show<T >(props : {
12
+ function Show<T , K >(props : {
13
13
when: T | undefined | null | false
14
14
keyed: boolean
15
15
fallback? : JSX .Element
16
- children: JSX .Element | ((item : T ) => JSX .Element )
16
+ children: JSX .Element | ((item : T | Accessor < T > ) => JSX .Element )
17
17
}): () => JSX .Element
18
18
```
19
19
@@ -33,6 +33,8 @@ Show can also be used as a way of keying blocks to a specific data model. For ex
33
33
</Show>
34
34
` ` `
35
35
36
+ If the ` keyed ` property is not used , the argument of a child function will be an accessor containing the item.
37
+
36
38
## Props
37
39
38
40
| Name | Type | Description |
You can’t perform that action at this time.
0 commit comments