--- import type { TableProps } from "../types/table/types"; import { cn } from "../utils/cn"; const { columns = [], data = [], selectable = false, search = false, striped = false, pagignations = true, pageSize = 10, fetchData, columnsRendererKey, } = Astro.props as TableProps; const id = `table-${Math.random().toString(36).slice(2, 9)}`; ---
{ search && (
) }
{ selectable && ( ) } { columns.map((col) => ( )) }
{col.label} {col.sortable && ( )}
Rows per page: