Installation
npm i @vanillawc/wc-tableImport from NPM
<script type="module" src="node_modules/@vanillawc/wc-table/index.js"></script>Import from CDN
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-table@1/index.js"></script>Try it on WebComponents.dev
Attributes
src- load an external CSV/JSON file
Properties
value- get/set the editor's contents
<wc-table src="sample.csv"></wc-table>By default, <wc-table> contains an un-styled <table> element in the lightDOM. That means, it will inherit any global CSS styles present on the site and can be styled directly using CSS.
See CONTRIBUTING.md