Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@material/react-fab
Advanced tools
Changelog
0.7.1 (2018-11-30)
<a name="0.6.2"></a>
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)
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.