Gathering detailed insights and metrics for @react-mdc/fab
Gathering detailed insights and metrics for @react-mdc/fab
Gathering detailed insights and metrics for @react-mdc/fab
Gathering detailed insights and metrics for @react-mdc/fab
npm install @react-mdc/fab
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
178 Stars
491 Commits
15 Forks
18 Watching
2 Branches
6 Contributors
Updated on 03 Oct 2024
TypeScript (98.74%)
Python (1.26%)
Cumulative downloads
Total Downloads
Last day
400%
5
Compared to previous day
Last week
450%
11
Compared to previous week
Last month
19%
25
Compared to previous month
Last year
-6%
905
Compared to previous year
React wrapper of Material Components Web
The project is under active development.
Every updates can contain breaking changes before 0.2.0.
We do not recommend you to use this library for produciton applications at this time.
You can find documentation with live demo at https://react-mdc.github.io/
Typed strictly with TypeScript
You can access typing support by also using TypeScript
Stylesheet independent
Since Material Components Web can be customized with scss, it does not depend on specific stylesheet. You can load your own stylesheet or a default one.
Each component packaged individually
Like Material Components Web, You can access all components individually, under @react-mdc npm scope.
Install the library
1$ npm install --save @react-mdc/typography
Import the stylesheet
1<link type="text/css" href="/static/material-components-web.min.css" rel="stylesheet" /> 2
Or load using webpack and scss-loader
my-mdc.scss
1 2// My main Sass file. 3$mdc-theme-primary: #9c27b0; 4$mdc-theme-accent: #76ff03; 5$mdc-theme-background: #fff; 6 7@import "material-components-web/material-components-web"; 8
app.js
1import * as React from 'react'; 2import * as ReactDOM from 'react-dom'; 3 4import "./stylesheets/my-mdc.scss"; 5import Main from './main.js'; 6 7ReactDOM.render(<Main />, document.getElementById('root')); 8
And import @react-mdc then give it a shot.
main.js
1 2import * as React from "react"; 3import Typography from "@react-mdc/typography"; 4 5export default class Main extends React.Component<{}, {}> { 6 render () { 7 return ( 8 <Typography> 9 <Typography.Title> 10 This is an example 11 </Typography.Title> 12 <Typography.Body2> 13 Hello world! 14 </Typography.Body2> 15 </Typography> 16 ); 17 } 18} 19
Bootstrap
1 2$ lerna bootstrap 3
Build
1 2$ npm run build 3
1 2$ cd docs 3$ npm start 4
1 2$ npm run watch 3
1 2$ npm test 3
to watch
1 2$ npm test:watch 3
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 5/21 approved changesets -- score normalized to 2
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
127 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