3shape-design-system 中文文档教程
3shape-design-system
How to use
安装包
npm i 3shape-design-system @webcomponents/webcomponentsjs
添加 polyfill 导入
import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';
// or dynamical
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';
添加组件导入
import '3shape-design-system';
使用标签
<g-select
label="Label"
name="test"
required
></g-select>
Props
Prop | Type | Default | Description |
---|---|---|---|
{label} | String | null | label text |
{required} | Boolean | null | shows required field (label is required) |
{disabled} | Boolean | null | disabled state |
{name} | String | null | input name |
{hint} | String | null | hint text |
{error} | String | null | error message |
{value} | String | null | controlled input value |
{onChange} | Function | null | controlled input change handler |
How to develop
npm i
npm run watch
npm run serve
访问 http://localhost:8000
3shape-design-system
How to use
Install packages
npm i 3shape-design-system @webcomponents/webcomponentsjs
Add polyfill import
import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';
// or dynamical
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';
Add components import
import '3shape-design-system';
Use tags
<g-select
label="Label"
name="test"
required
></g-select>
Props
Prop | Type | Default | Description |
---|---|---|---|
{label} | String | null | label text |
{required} | Boolean | null | shows required field (label is required) |
{disabled} | Boolean | null | disabled state |
{name} | String | null | input name |
{hint} | String | null | hint text |
{error} | String | null | error message |
{value} | String | null | controlled input value |
{onChange} | Function | null | controlled input change handler |
How to develop
npm i
npm run watch
npm run serve
Go to http://localhost:8000
更多
你可能也喜欢
- 98k-loading 中文文档教程
- @2plgiap/react-leaflet-control 中文文档教程
- @a-i/agent-server 中文文档教程
- @aaashur/eleventy-plugin-define-page-data 中文文档教程
- @aarhus-university/au-lib-react-maps 中文文档教程
- @abr-ya/simple-table 中文文档教程
- @acaprojects/ngx-slider 中文文档教程
- @accounts/client 中文文档教程
- @acknow-srl/ack-charts 中文文档教程
- @adactiveasia/react-responsive-carousel 中文文档教程