Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elfd

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elfd

Mobile UI Components built on Web Components.

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Elf-design

Elf-design /elf/ 是一个基于 Web Components 的 UI 组件库。它是一个不局限于框架的组件复用(可在 Angular、React、Vue 等跨技术栈使用)。

Features

  • Fast.
  • Web Components.
  • Simple.

cdn 使用

<script type="module" src="https://unpkg.com/elfd@latest/index.js"></script>

Vue 技术栈使用

当作原生 dom 元素直接使用即可。

ps:直接使用 Web Component 会告警:

Unknown custom element: <user-card> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

因此请先注册需要忽略的标签:

Vue.config.ignoredElements = [
  'user-card',
  // 用一个 `RegExp` 忽略所有“ion-”开头的元素
  // 仅在 2.5+ 支持
  /^ion-/
]

React 技术栈使用

同理,当作原生 dom 元素直接使用即可。

License

elf is released under the MIT License. See the bundled LICENSE file for details.

Keywords

FAQs

Package last updated on 10 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc