Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Yew wrapper for Material Web Components

License

NotificationsYou must be signed in to change notification settings

ranile/material-yew

Repository files navigation

Material Yew is a components library forYew framework which is a wrapper aroundMaterial 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:

<linkhref="https://fonts.googleapis.com/css?family=Roboto:300,400,500"rel="stylesheet"><linkhref="https://fonts.googleapis.com/css?family=Material+Icons&display=block"rel="stylesheet">

It's also important to note that you needviewportmeta tag for the Material Components to be responsive.

<metaname="viewport"content="width=device-width, initial-scale=1.0">

Documentation

Full API documentation can be foundhere.

Contributing

  1. Fork it (https://github.com/hamza1311/material-yew)
  2. Create your feature branch (git checkout -b your-feature-branch)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin your-feature-branch)
  5. Create a new Pull Request

[8]ページ先頭

©2009-2025 Movatter.jp