https://github.com/flcwl/svelte-web-component-template
A template project to quickly write and build Web Components based on Svelte.
https://github.com/flcwl/svelte-web-component-template
Last synced: 11 months ago
JSON representation
A template project to quickly write and build Web Components based on Svelte.
- Host: GitHub
- URL: https://github.com/flcwl/svelte-web-component-template
- Owner: Flcwl
- License: mit
- Created: 2022-11-05T10:35:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-06T09:29:15.000Z (over 3 years ago)
- Last Synced: 2025-06-17T20:40:54.347Z (12 months ago)
- Language: TypeScript
- Homepage:
- Size: 311 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 介绍
- 快速构建基于 Svelte 的跨框架 web component 组件模板。
## 适用场景
- 构建简单的跨框架组件
- 无法处理不同框架组件的事件、API 等能力,比如:在 React 中使用时,无法通过 `React.cloneElement` 拦截子元素的 prop 做一下特殊操作等。
## Ref
- https://svelte.dev/examples/context-api