staclick-ui v0.1.7
staclick-ui
A Staclick-style UI component library developed based on native components.
Installation
npm install staclick-ui --save
Usage
JavaScript
import Staclick from 'staclick-ui';
// Register <staclick-button>.
Staclick('button');
// ...Register other components of "staclick-ui".
HTML
<!-- After calling "Staclick('button');". -->
<staclick-button></staclick-button>
<!-- After calling "Staclick('...');". -->
<!-- <staclick-...></staclick-...> -->
p.s.
User documentation (both in English and Chinese) is available on the GitHub project page of this package.
Can be used for the project powered by Vue.js or React.js.
Suitable for the development of Electron.js based apps or browser extensions.
Since the native icons are provided as Data URLs and they are all packaged into this module, the size of this module will be very large. You can choose to edit the file "src/style/icons/iconGroup.js" and repackage this module to reduce the size of the module.
Since this module is based on Web Components, it may can't work on IE / Edge and other modern browsers in low-level versions.
Before you download, you can test and try it online here first.