import { html, view } from '@lib/html'; type Item = { name: string; avatar: string; country: string; company: string; color: string; job: string; }; // an array of null items is used to show the loading state export default (items: Item[] | null[]) => { return html`

Using _hyperscript to do multi-select

${items .map((item) => item ? html` ` : html` ` ) .join('\n')}
Name Job Favorite Color
Avatar Tailwind CSS Component
${item.name}
${item.country}
${item.company}
${item.job}
${item.color}
Name Job Favorite Color
`; };