• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

svelte-material-ui: 基于svelte和material-ui的组件

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

svelte-material-ui

开源软件地址:

https://gitee.com/BBJun/svelte-material-ui

开源软件介绍:


Svelte Material UI

A library of Svelte Material UI components, based on Material Design Components - Web.

Demos

https://sveltematerialui.com

Features

Here are some features you should know about:

  • Full TypeScript support, including HTML attributes.
  • You can add arbitrary attributes to all of the components and many of the elements within them.
  • You can add actions to the components with use={[Action1, [Action2, action2Props], Action3]}.
  • You can add props to lower components and elements with "$" props, like input$maxlength="15".
  • All events are forwarded. This includes DOM events, MDC events, and custom events.
    • You can add event modifiers with the on:click$preventDefault$capture={handler} syntax.
      • If you use Svelte's native on:click|preventDefault={handler} syntax, it will not compile. You have to use "$" instead of "|". (The extra S inside the | stands for SMUI.)
    • Supported modifiers are:
      • preventDefault
      • stopPropagation
      • passive
      • nonpassive
      • capture
      • once
  • Labels and icons are named exports in the components that use them, or you can use the 'Label' and 'Icon' exports from '@smui/common'. (Except for chips labels and icons, textfield icons, and select icons, because they are special snowflakes.)
  • SMUI supports RTL languages.

Installation

To get started, check out the installation docs or the SvelteKit docs.

Migration

Upgrading from an old version? Be sure to read the migration doc.

Upgrading from v2? There are lots of changes listed in the upgrade instructions.

Upgrading from v3? SMUI's styling method has been simplified. Check out the upgrade instructions.

Upgrading from v4? SMUI now requires the TypeScript preprocessor. Check out the upgrade instructions.

Need Help?

If you need help using SMUI, join the new Discord server.

Get Typed!

I'm super typed to announce, SMUI 5 introduces TypeScript support! All the benefits of TypeScript, all the beauty of SMUI!

Components

Click a component/package below to go to the documentation. (Note that this documentation is a work in progress. The demo code should be your main source of truth for how something works.)

† This is Sass based, and therefore doesn't require Svelte components. I've included a demo showing how you can use it.

‡ This is not an MDC Web component. It is an addition that SMUI provides.

License

Copyright 2020-2021 Hunter Perrin

Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap