Quick start
From install to rendered table
npm install @open-wc/components
Register an element through its define entry point, then use the tag in any template. Every component page has a copyable demo.
@open-wc/components
Framework-agnostic Lit components with typed APIs and copy-paste demos. Import only what you use — unbundled modules, no build step required.
npm install @open-wc/components
Register a component through its define entry point and pass data as properties. This example is
complete enough to paste into any Lit view:
import { html } from 'lit';
import '@open-wc/components/define/owc-table.js';
const columns = [
{ label: 'First name', field: 'firstName', filterable: true },
{ label: 'Last name', field: 'lastName', filterable: true },
];
const rows = [
{ id: '1', firstName: 'Ada', lastName: 'Lovelace' },
{ id: '2', firstName: 'Grace', lastName: 'Hopper' },
];
export const view = () => html`<owc-table .columns=${columns} .data=${rows}></owc-table>`;
Every reference page follows the same pattern: pick a component from the component index, copy the smallest demo that matches your use case, and replace the demo data with application data.
From install to rendered table
npm install @open-wc/components
Register an element through its define entry point, then use the tag in any template. Every component page has a copyable demo.
Unbundled ESM — applications import only the modules they use.
A side-effect import from define/ registers the custom element tag.
Typed .columns, .data, and schema properties drive the rendering.
Style through CSS custom properties — no preprocessor required.
Tables with filtering, sorting, selection, and mass edit — plus charts, detail views, and card lists for everything around them.
Render complete forms from a JSON Schema with Json Form, or compose inputs like autocomplete, sliders, and click-to-edit fields.
Ships as unbundled ES modules that run directly in modern browsers and any bundler — no framework lock-in.
TypeScript definitions for every public entry point, so editors autocomplete columns, options, and events.