--- import ComponentWrapper from '@static/ComponentWrapper.astro' import Layout from '@static/Layout.astro' import AstroTable from '@components/Table/Table.astro' import SvelteTable from '@components/Table/Table.svelte' import ReactTable from '@components/Table/Table.tsx' import { getSections } from '@helpers' const sections = getSections({ title: 'tables', components: [AstroTable, SvelteTable, ReactTable] }) const tableData = [ ['1', 'John Doe'], ['2', 'Jane Smith'], ['3', 'Emily Davis'], ['4', 'Frank Williams'] ] const tableWithHeading = { headings: ['ID', 'Name'], data: tableData } const tableWithHeadingAndFooter = { headings: ['ID', 'Name'], data: tableData, footer: ['Total', '4'] } const tableWithMultipleColumns = { headings: ['ID', 'Name', 'Active'], data: tableData.map(data => [...data, '✅']), footer: ['Total', '', '4'] } const overflowTable = { headings: ['ID', 'Name', 'Email', 'Active'], footer: ['Total', '', '', '4'], data: tableData.map(data => [ ...data, `${data[1]}@example.com`, '✅' ]) } const scrollTable = { headings: ['Keyword', 'CSS'], data: [ ['none', '0'], ['xxs', '2px'], ['xs', '5px'], ['sm', '10px'], ['md', '15px'], ['default', '20px'], ['lg', '25px'], ['xl', '30px'], ['2xl', '35px'], ['3xl', '40px'], ['4xl', '45px'], ['5xl', '50px'], ['6xl', '55px'], ['7xl', '60px'], ['8xl', '65px'], ['9xl', '70px'], ['10xl', '75px'] ] } ---

Table

{sections.map(section => (

{section.title}

))}