用于 Electron 应用程序的原生外观 UI 组件

Native looking UI components for Electron application

我将 Electron(以前称为 Atom Shell)用于桌面应用程序。 使用起来很有趣,事件驱动编程也有它的优点。

我掌握了所有 HTML、CSS 和 JS 功能,因为它使用了最新的 Chromium 版本之一。 我想使用看起来与原生元素相似的 UI 元素(在我的例子中来自 OS X)。

是否有一个 UI 库模仿本机 UI 元素或其他非常适合此类桌面应用程序的元素的外观和功能?

在网上搜索了一下后,我发现了一个名为 Maverix. I don't think it matches OSX perfectly, but it looks pretty darn close. It is open source under MIT so you should be able to bend it to your will. After scanning through there demo page 的 bootstrap 主题,它甚至将 Electron (Atom-Shell) 作为一个很好的用例:

It is perfect to be used for apps that are based on HTML App Containers such as: MacGap Node-Webkit Github Atom Shell Adobe Brackets Shell

这似乎完全符合您的要求。

Photon 是最近的一个项目,但它可能正是您想要的。目前 UI 仅类似于 OSX.

UI toolkit for building desktop apps with Electron.

Link: http://photonkit.com/

另一种选择是 React Desktop,尽管它看起来还很年轻。目前它部分支持 OS X El Capitan 和 Windows 10,但希望可用组件的数量和支持的系统会增加。

This library has been created to bring a native desktop experience to the web. It works extremely well with tools such as node-webkit or Electron.js!

https://xel-toolkit.org

其他答案提供一个框架和一些组件,Xel提供更多组件。 Xel 基于 Web 组件构建,与框架无关。