Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
closure-react-fab
Advanced tools
Readme
A React version of an MDC Floating Action Button.
npm install @material/react-fab
with Sass:
import '@material/react-fab/index.scss';
with CSS:
import '@material/react-fab/dist/fab.css';
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 icon={<span className="material-icons">favorite</span>}/>
<Fab icon={<i className="material-icons">favorite</i>}/>
<Fab icon={
<svg xmlns="http://www.w3.org/2000/svg" className="material-icons" viewBox="0 0 24 24">
...
</svg>
}/>
<Fab icon={<img className="material-icons" src="/images/ic_button_24px.svg"/>}/>
<Fab icon={<MaterialIcon icon="favorite"/>}/>
Prop Name | Type | Description |
---|---|---|
className | String | Classes to be applied to the root element. |
mini | n/a | Enables the mini variant. |
icon | Element | The icon. |
textLabel | String | The label, which makes the FAB extended. |
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.
Please see our Best Practices doc when importing or using icon fonts.
FAQs
Material Components React Floating Action Button (FAB)
The npm package closure-react-fab receives a total of 2 weekly downloads. As such, closure-react-fab popularity was classified as not popular.
We found that closure-react-fab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.