An open API service indexing awesome lists of open source software.

https://github.com/xgqfrms/wcui

Web Components UI (@xgqfrms/wcui)
https://github.com/xgqfrms/wcui

javascript lit npm typescript ui wcui web-components xgqfrms

Last synced: 2 months ago
JSON representation

Web Components UI (@xgqfrms/wcui)

Awesome Lists containing this project

README

          

![](https://img.shields.io/badge/webcomponents.org-published-blue.svg) [![](https://img.shields.io/badge/webcomponents.org-@xgqfrms/wcui-deepgreen.svg)](https://www.webcomponents.org/element/@xgqfrms/wcui)

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)

# Web Components UI

> WCUI

https://www.webcomponents.org/element/@xgqfrms/wcui

## install

```sh
# Web Components UI
$ npm i -S @xgqfrms/wcui

```

https://www.npmjs.com/package/@xgqfrms/wcui

> lit version

https://www.npmjs.com/package/lit-wcui

## usage

```html


默认按钮


成功按钮


警告按钮


危险按钮

```

```js
const callback = (type = '') => {
console.log('button type', type);
alert(`🎉 button type =${type}`);
}

window.callback = callback;

```

![](https://user-images.githubusercontent.com/7291672/177508468-07c709a8-edd3-4e25-8048-a3996a0c92e9.png)

## live demo

```html





默认按钮





成功按钮





警告按钮




危险按钮



```

## wcui components table

|name|props|type|default|
|-|-|-|-|
|wcui-toast|content|string|''|
|wcui-button|type|'primary'/'success'/'warning'/'danger'|'primary'|
|wcui-time-formatter|datetime / year / month / day/ hour / minute / second / time-zone-nam|string|Date.now()|
|-|-|-|-|
|-|-|-|-|
|-|-|-|-|

## dev

> github

```sh
# dev
$ npm run dev

# build
$ npm run build

```

> npm

```sh
# publish
$ npm publish
# $ npm publish --access=public

```

https://github.com/xgqfrms/wcui

## refs

https://developer.mozilla.org/en-US/docs/Web/Web_Components/

https://javascript.info/custom-elements

https://rollupjs.org/

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



xgqfrms

💻 👀 🚧

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!