@aaronshaf/panda-ui 中文文档教程
Panda UI 是一套实验性的样式表和网络组件,类似于(并基于)InstUI。
Theme stylesheets
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@aaronshaf/panda-ui@1/dist/themes/canvas.css"
/>
<!-- or -->
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@aaronshaf/panda-ui@1/dist/themes/canvas-high-contrast.css"
/>
.body {
font-family: var(--typography-fontFamily);
}
Web components
Alert
<script
src="https://unpkg.com/@aaronshaf/panda-ui@1/dist/elements/alert.js"
defer
></script>
<script
src="https://unpkg.com/@aaronshaf/panda-ui@1/dist/icons/checkmark.js"
defer
></script>
或
import "@aaronshaf/panda-ui/dist/elements/alert.js";
import "@aaronshaf/panda-ui/dist/icons/checkmark.js";
<panda-alert variant="success">
<div slot="icon">
<panda-icon-checkmark></panda-icon-checkmark>
</div>
<div slot="content">
Sample success alert text.
</div>
</panda-alert>
Button
<script src="https://unpkg.com/@aaronshaf/panda-ui@1/dist/elements/button.js"></script>
或
import "@aaronshaf/panda-ui/dist/elements/button.js";
<panda-button variant="primary">
Primary button
</panda-button>
Progress Bar
<script
src="https://unpkg.com/@aaronshaf/panda-ui@1/dist/elements/progress-bar.js"
defer
></script>
或
import "@aaronshaf/panda-ui/dist/elements/progress-bar.js";
<panda-progress-bar
label="Loading completion"
max="60"
value="20"
variant="primary"
>
Primary button
</panda-progress-bar>
Dev
yarn
yarn run prepare
yarn run dev
Panda UI is an experimental set of stylesheets and web components in the likeness (and based on the work of) InstUI.
Theme stylesheets
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@aaronshaf/panda-ui@1/dist/themes/canvas.css"
/>
<!-- or -->
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@aaronshaf/panda-ui@1/dist/themes/canvas-high-contrast.css"
/>
.body {
font-family: var(--typography-fontFamily);
}
Web components
Alert
<script
src="https://unpkg.com/@aaronshaf/panda-ui@1/dist/elements/alert.js"
defer
></script>
<script
src="https://unpkg.com/@aaronshaf/panda-ui@1/dist/icons/checkmark.js"
defer
></script>
or
import "@aaronshaf/panda-ui/dist/elements/alert.js";
import "@aaronshaf/panda-ui/dist/icons/checkmark.js";
<panda-alert variant="success">
<div slot="icon">
<panda-icon-checkmark></panda-icon-checkmark>
</div>
<div slot="content">
Sample success alert text.
</div>
</panda-alert>
Button
<script src="https://unpkg.com/@aaronshaf/panda-ui@1/dist/elements/button.js"></script>
or
import "@aaronshaf/panda-ui/dist/elements/button.js";
<panda-button variant="primary">
Primary button
</panda-button>
Progress Bar
<script
src="https://unpkg.com/@aaronshaf/panda-ui@1/dist/elements/progress-bar.js"
defer
></script>
or
import "@aaronshaf/panda-ui/dist/elements/progress-bar.js";
<panda-progress-bar
label="Loading completion"
max="60"
value="20"
variant="primary"
>
Primary button
</panda-progress-bar>
Dev
yarn
yarn run prepare
yarn run dev
更多
你可能也喜欢
- @1k/md5 中文文档教程
- @21epub/epub-app-lib 中文文档教程
- @2alheure/vue-accordion 中文文档教程
- @2toad/diff-match-patch 中文文档教程
- @3dwayfinder/touchscroll 中文文档教程
- @4geit/rct-account-store 中文文档教程
- @a-la/source-map-generator 中文文档教程
- @a2604882741z/turbine 中文文档教程
- @aaa3032/executor-of-cmd-commands 中文文档教程
- @aapokiiso/hsl-congestion-utils 中文文档教程