MCPcopy Index your code
hub / github.com/TanStack/form / UtilList

Function UtilList

packages/form-devtools/src/components/UtilList.tsx:12–40  ·  view source on GitHub ↗
(props: UtilListProps)

Source from the content-addressed store, hash-verified

10}
11
12export function UtilList(props: UtilListProps) {
13 const styles = useStyles()
14 const { store } = useFormEventClient()
15
16 return (
17 <div class={styles().utilList}>
18 {store.formState.length > 0 && (
19 <div class={styles().utilGroup}>
20 <For each={store.formState}>
21 {(instance) => {
22 return (
23 <div
24 class={clsx(
25 styles().utilRow,
26 props.selectedKey() === instance.id &&
27 styles().utilRowSelected,
28 )}
29 onClick={() => props.setSelectedKey(instance.id)}
30 >
31 <div class={styles().utilKey}>{instance.id}</div>
32 </div>
33 )
34 }}
35 </For>
36 </div>
37 )}
38 </div>
39 )
40}

Callers

nothing calls this directly

Calls 2

useStylesFunction · 0.90
useFormEventClientFunction · 0.90

Tested by

no test coverage detected