- Notifications
You must be signed in to change notification settings - Fork37
Yew wrapper for Material Web Components
License
NotificationsYou must be signed in to change notification settings
ranile/material-yew
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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.
use material_yew::Button;use yew::html;html!{ <Button label="Click me!" />};
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 needviewport
meta
tag for the Material Components to be responsive.
<metaname="viewport"content="width=device-width, initial-scale=1.0">
Full API documentation can be foundhere.
- 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
About
Yew wrapper for Material Web Components