starting fresh

This commit is contained in:
Chris Kruining 2025-03-31 00:34:55 +02:00
parent 85fa9aff4a
commit 3a762d2343
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
111 changed files with 1939 additions and 2961 deletions

View file

@ -0,0 +1,22 @@
import { Accessor, Index, JSX } from "solid-js";
import { css } from "./list.module.css";
interface ListProps<T> {
label: string;
items: T[];
children: (item: Accessor<T>) => JSX.Element;
}
export function List<T>(props: ListProps<T>) {
return (
<section class={css.container}>
<b role="heading" class={css.heading}>
{props.label}
</b>
<ul class={css.list}>
<Index each={props.items}>{(item) => props.children(item)}</Index>
</ul>
</section>
);
}