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`
| Name | Job | Favorite Color | ||
|---|---|---|---|---|
|
${item.name}
${item.country}
|
${item.company}
${item.job} |
${item.color} | ||
| Name | Job | Favorite Color |