web-component-base
web-component-base copied to clipboard
Web Components in Easy Mode 🧱
If custom element is using wcb, `html` handles input props (assigns to el.props.prop) - [ ] example of using custom element within custom element
Just opening this idea for exploration. At the moment it can handle 'number', 'boolean', and 'object' with JSON.stringify and JSON.parse ... we can support other types as props if we...
We initially assigned to this[prop] and this[camelCase] during attribute value changes -- which is a possible way to override existing properties of the class and, therefore, of `HTMLElement` if devs,...
Let's use Astro Starlight! https://starlight.astro.build/ The [README.md](https://github.com/ayoayco/web-component-base?tab=readme-ov-file#web-component-base) file have good enough initial content we can use.
We know the types from the initialization of `static props` and use this to populate an internal `typeMap` that is used to restore the type of properties after a full...
- [ ] Unit & performance tests - [ ] Linting - [ ] Changesets (from conventional commits) - [x] Distribution bundles - [ ] Docs: contributing, CoC, guides