ranile/material-yew
Fork: 35 Star: 229 (更新于 2024-11-21 04:59:14)
license: Apache-2.0
Language: Rust .
Yew wrapper for Material Web Components
最后发布版本: v0.2.0 ( 2022-06-20 01:18:58)
Material Yew
Material Yew is a components library for Yew framework which is a wrapper around Material Web Components exposing Yew components. All modern browsers are supported.
Example
use material_yew::Button;
use yew::html;
html! {
<Button label="Click me!" />
};
Getting started
Installation
Cargo.toml
:
[dependencies]
material-yew = "*"
Material icons and a Material font can also be imported for full functionality.
index.html
:
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet">
It's also important to note that you need viewport
meta
tag for the Material Components to be responsive.
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Documentation
Full API documentation can be found here.
Contributing
- Fork it (https://github.com/hamza1311/material-yew)
- Create your feature branch (
git checkout -b your-feature-branch
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin your-feature-branch
) - Create a new Pull Request
主题(topics):
material-components, material-design, rust, wasm, wrapper, yew, yew-material
ranile/material-yew同语言 Rust最近更新仓库
2024-11-20 07:29:29 lanyeeee/jmcomic-downloader
2024-11-19 23:39:15 gleam-lang/gleam
2024-11-19 08:50:55 lapce/lapce
2024-11-11 22:51:00 tauri-apps/tauri
2024-11-11 07:55:30 dani-garcia/vaultwarden
2024-11-09 16:42:37 rustdesk/rustdesk