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' | undefined-
size'sm' | 'md' | 'lg' | undefined-
headerstring[] | undefined-
bodystring[][] | undefined-
footerstring[] | undefined-
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']}
/>