zebra-striped responsive table.

Live preview

FeatureFreePro
Pages10Unlimited
Custom domain—✓
SupportCommunityPriority

Install

From your site folder, run:

jprot add StripedTable

That downloads the self-contained component into theme/components/StripedTable.js,

where it is picked up automatically — the same way as any built-in component.

To remove it later, just delete that file.

Use it as a homepage section

Add an entry to the sections: list in jprot.config.js:

sections: [
  { component: 'StripedTable', title: 'StripedTable' },
]

Use it inside a page

On its own line in any Markdown file, passing the props:

:::StripedTable headers='["Feature","Free","Pro"]' rows='[["Pages","10","Unlimited"],["Custom domain","—","✓"],["Support","Community","Priority"]]'

Props

PropTypeNote
headersarraycolumn names
rowsarrayarray of arrays

↩ Back to all elements