# sober **Repository Path**: zaoangod/sober ## Basic Information - **Project Name**: sober - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-02 - **Last Updated**: 2024-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sober [![npm version](https://badge.fury.io/js/sober.svg)](https://badge.fury.io/js/sober) ![Static Badge](https://img.shields.io/badge/complete%20build-107kb-blue) ![Static Badge](https://img.shields.io/badge/gzip-23kb-wheat) Sober 是参考 Google Material You 设计规范的 Web Component UI 组件库。 Sober is a Web Component UI component library that references Google's Material You design specifications. Sober 支持所有前端框架,如 Vue、React、Svelte 等,并且专门为 Vue 框架做了适配支持模版和 JSX 的补全以及使用 `v-model` 等语法。 Sober supports all front-end frameworks such as Vue, React, Svelte, and more. It is specifically tailored for the Vue framework, providing support for template and JSX completion, as well as the use of syntax like `v-model`. Sober Preview # NPM Installation ```shell npm install sober ``` ```js import * as sober from 'sober' ``` # CDN ```html ``` # Usage ```html Hello Sober ``` 动态创建组件 Dynamic creation of components ```js const button2 = document.createElement('s-button') button.textContent = 'hello' button.theme = 'outlined' document.body.appendChild(button) ``` # 文档 Documentation 在 [soberjs.com](https://soberjs.com) 上查看 **Sober** 的完整文档。 See Sober's full documentation on [soberjs.com](https://soberjs.com)