
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@material/react-fab
Advanced tools
A React version of an MDC Floating Action Button.
npm install @material/react-fab
The Fab can be used with the span
, i
, img
or svg
elements. It can also be used with the
Material Icon react component.
<Fab>
<span className="material-icons">favorite</span>
</Fab>
<Fab>
<i className="material-icons">favorite</i>
</Fab>
<Fab>
<svg xmlns="http://www.w3.org/2000/svg" className="material-icons" viewBox="0 0 24 24">
...
</svg>
</Fab>
<Fab>
<img className="material-icons" src="/images/ic_button_24px.svg"/>
</Fab>
<Fab>
<MaterialIcon icon="favorite"/>
</Fab>
Prop Name | Type | Description |
---|---|---|
className | String | Classes to be applied to the root element. |
mini | n/a | Enables the mini variant. |
Sass mixins may be available to customize various aspects of the components. Please refer to the MDC Web repository for more information on what mixins are available, and how to use them.
0.3.0 (2018-06-25)
<a name="0.2.0"></a>
FAQs
Material Components React Floating Action Button (FAB)
The npm package @material/react-fab receives a total of 106 weekly downloads. As such, @material/react-fab popularity was classified as not popular.
We found that @material/react-fab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.