Gathering detailed insights and metrics for @material/button
Gathering detailed insights and metrics for @material/button
Gathering detailed insights and metrics for @material/button
Gathering detailed insights and metrics for @material/button
@unlimited-react-components/material-button
Independant Material Button from Material Design built from 0
ember-cli-mdc-button
ember-cli addon for @material/button
@angular2-material/button
Angular 2 Material button
@angular2-material/button-toggle
Angular 2 Material Button Toggle
Modular and customizable Material Design UI components for the web
npm install @material/button
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
17,143 Stars
7,459 Commits
2,144 Forks
375 Watching
370 Branches
386 Contributors
Updated on 27 Nov 2024
TypeScript (53.58%)
SCSS (45.16%)
JavaScript (1.16%)
Shell (0.1%)
Cumulative downloads
Total Downloads
Last day
-5.1%
155,198
Compared to previous day
Last week
1.8%
817,100
Compared to previous week
Last month
3.2%
3,461,464
Compared to previous month
Last year
87.9%
45,571,721
Compared to previous year
Note:
This project is no longer actively maintained. While automated updates may still occur, the team will not be prioritizing new features or bug fixes, and those updates will be turned off in the future.
For Angular users, our friends at Angular Material moved away from this library, and they expect that this may actually allow for faster iteration - see their blog post for more information.
Material Components for the web helps developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional web projects.
Material Web strives to seamlessly incorporate into a wider range of usage contexts, from simple static websites to complex, JavaScript-heavy applications to hybrid client/server rendering systems. In short, whether you're already heavily invested in another framework or not, it should be easy to incorporate Material Components into your site in a lightweight, idiomatic fashion.
Material Components for the web is the successor to Material Design Lite. In addition to implementing the Material Design guidelines, it provides more flexible theming customization, not only in terms of color, but also typography, shape, states, and more. It is also specifically architected for adaptability to various major web frameworks.
NOTE: Material Components Web tends to release breaking changes on a monthly basis, but follows semver so you can control when you incorporate them. We typically follow a 2-week release schedule which includes one major release per month with breaking changes, and intermediate patch releases with bug fixes.
1<!-- Required styles for Material Web --> 2<link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css"> 3 4<!-- Render textfield component --> 5<label class="mdc-text-field mdc-text-field--filled"> 6 <span class="mdc-text-field__ripple"></span> 7 <span class="mdc-floating-label" id="my-label">Label</span> 8 <input type="text" class="mdc-text-field__input" aria-labelledby="my-label"> 9 <span class="mdc-line-ripple"></span> 10</label> 11 12<!-- Required Material Web JavaScript library --> 13<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script> 14<!-- Instantiate single textfield component rendered in the document --> 15<script> 16 mdc.textField.MDCTextField.attachTo(document.querySelector<HTMLElement>('.mdc-text-field')); 17</script>
Please see quick start demo on codepen for full example.
This guide assumes you have webpack configured to compile Sass into CSS. To configure webpack, please see the full getting started guide. You can also see the final code and result in the Material Starter Kit.
Install textfield node module to your project.
npm install @material/textfield
Sample usage of text field component. Please see Textfield component page for more options.
1<label class="mdc-text-field mdc-text-field--filled"> 2 <span class="mdc-text-field__ripple"></span> 3 <input type="text" class="mdc-text-field__input" aria-labelledby="my-label"> 4 <span class="mdc-floating-label" id="my-label">Label</span> 5 <span class="mdc-line-ripple"></span> 6</label>
Load styles required for text field component.
1@use "@material/floating-label/mdc-floating-label"; 2@use "@material/line-ripple/mdc-line-ripple"; 3@use "@material/notched-outline/mdc-notched-outline"; 4@use "@material/textfield"; 5 6@include textfield.core-styles; 7
Import MDCTextField
module to instantiate text field component.
1import {MDCTextField} from '@material/textfield'; 2const textField = new MDCTextField(document.querySelector<HTMLElement>('.mdc-text-field'));
This'll initialize text field component on a single .mdc-text-field
element.
Please see quick start demo on glitch for full example.
We're constantly trying to improve our components. If Github Issues don't fit your needs, then please visit us on our Discord Channel.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
10 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 8
Reason
Found 11/30 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
103 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More