Fulldev UI

Docs Components Blocks Showcase

Table

ProductColorQuantity
AppleGreen2
BananaYellow3
Total5
---
import Table from 'fulldev-ui/components/Table.astro'
---

<Table
  header={['Product', 'Color', 'Quantity']}
  body={[
    ['Apple', 'Green', '2'],
    ['Banana', 'Yellow', '3'],
  ]}
  footer={['Total', '', '5']}
/>

Props

PropTypeDefault
color'base' | 'brand'-
size'sm' | 'md' | 'lg'-
headerstring[]-
bodystring[][]-
footerstring[]-
radius'none' | 'auto'auto
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']}
/>