Fulldev UI

Docs Components Blocks

Table

PropTypeDefault
color'base' | 'brand'-
size'sm' | 'md' | 'lg'-
headerstring[]-
bodystring[][]-
footer(string | { text: string-
colspanstring | number-
asHTMLTagtable
HTML AttributesPolymorphic<table>-

Examples

ProductQuantity
Apple2
Banana3
Total5
---
import Table from 'fulldev-ui/components/Table.astro'
---

<Table
  header={['Product', 'Quantity']}
  body={[
    ['Apple', '2'],
    ['Banana', '3'],
  ]}
  footer={['Total', '5']}
/>
ProductQuantity
Apple2
Banana3
Total5
ProductQuantity
Apple2
Banana3
Total5
---
import Table from 'fulldev-ui/components/Table.astro'
---

<Table
  color="base"
  header={['Product', 'Quantity']}
  body={[
    ['Apple', '2'],
    ['Banana', '3'],
  ]}
  footer={['Total', '5']}
/>

<Table
  color="brand"
  header={['Product', 'Quantity']}
  body={[
    ['Apple', '2'],
    ['Banana', '3'],
  ]}
  footer={['Total', '5']}
/>
ProductQuantity
Apple2
Banana3
Total5
ProductQuantity
Apple2
Banana3
Total5
ProductQuantity
Apple2
Banana3
Total5
---
import Table from 'fulldev-ui/components/Table.astro'
---

<Table
  size="sm"
  header={['Product', 'Quantity']}
  body={[
    ['Apple', '2'],
    ['Banana', '3'],
  ]}
  footer={['Total', '5']}
/>

<Table
  size="md"
  header={['Product', 'Quantity']}
  body={[
    ['Apple', '2'],
    ['Banana', '3'],
  ]}
  footer={['Total', '5']}
/>
<Table
  size="lg"
  header={['Product', 'Quantity']}
  body={[
    ['Apple', '2'],
    ['Banana', '3'],
  ]}
  footer={['Total', '5']}
/>
ProductQuantity
Apple2
Banana3
Total5
ProductQuantity
Apple2
Banana3
Total5
---
import Table from 'fulldev-ui/components/Table.astro'
---

<Table
  radius="none"
  header={['Product', 'Quantity']}
  body={[
    ['Apple', '2'],
    ['Banana', '3'],
  ]}
  footer={['Total', '5']}
/>

<Table
  radius="auto"
  header={['Product', 'Quantity']}
  body={[
    ['Apple', '2'],
    ['Banana', '3'],
  ]}
  footer={['Total', '5']}
/>