sober
TypeScript icon, indicating that this package has built-in type declarations

0.1.23 • Public • Published

Sober

npm version Static Badge Static Badge

Sober 是参考 Google Material You 设计规范的 Web Component UI 组件库。

Sober is a Web Component UI component library that references the Google Material You design specification.

安装 Installation

npm install sober

使用 Usage

import 'sober' //引入所有组件 Load All Components
import 'sober/button' //或只引入单个组件 Loading individual components
<s-button> hello </s-button>

动态创建组件

Dynamic creation of components

import { Button } from 'sober'

const button = new Button()
//或者 or
const button2 = document.createElement('s-button')

button.textContent = 'hello'
button.theme = 'outlined'
document.body.appendChild(button)

文档 Documentation

soberjs.com 上查看 Sober 的完整文档。

See Sober's full documentation on soberjs.com

Package Sidebar

Install

npm i sober

Homepage

soberjs.com

Weekly Downloads

88

Version

0.1.23

License

MIT

Unpacked Size

433 kB

Total Files

78

Last publish

Collaborators

  • apprat