Lit web components
A set of small, themeable web components from 2023, built with Lit and published to npm, each with a live demo.
Built with Lit, they work in any page, framework or not, and take their colours from CSS custom properties.
- minimal-navbar (demo, source): a responsive navigation bar that switches to a mobile layout below a breakpoint you set.
- hamburger-btn (demo, source): a menu button.
- switch (demo, source): a toggle switch, used as a theme switch.
- poll-widget (demo, source): an embeddable, customisable poll.
- bar-chart (demo, source): a bar chart drawn with D3 that can render real-time data.
They predate everything else on this site.