Socket
Socket
Sign inDemoInstall

material-ui-animated-fab

Package Overview
Dependencies
46
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

3

package.json
{
"name": "material-ui-animated-fab",
"version": "1.0.1",
"version": "1.0.2",
"description": "Animation for FloatingActionButton for Material-UI",

@@ -32,2 +32,3 @@ "main": "lib/index.js",

"react": "^15.6.1",
"react-addons-transition-group": "^15.6.0",
"react-dom": "^15.6.1",

@@ -34,0 +35,0 @@ "react-tap-event-plugin": "^2.0.1"

@@ -7,13 +7,34 @@ # material-ui-animated-fab

```
import ReactTransitionGroup from 'react-addons-transition-group'
import AnimatedFAB from 'material-ui-animated-fab'
import ContentAdd from 'material-ui/svg-icons/content/add'
<AnimatedFAB
key={1}
style={style}
onClick={handleFabClicked}
onDidLeave={handleDidLeave}
>
<ContentAdd />
</AnimatedFAB>
let fab = ''
if (smth) {
fab = (
<AnimatedFAB
key={1}
style={style}
onClick={handleFabClicked}
onDidLeave={handleDidLeave}
>
<ContentAdd />
</AnimatedFAB>
)
} else if (smth2) {
fab = (
<AnimatedFAB
key={2}
style={style2}
onClick={handleFabClicked}
onDidLeave={handleDidLeave}
>
<ContentAdd />
</AnimatedFAB>
)
}
<ReactTransitionGroup>
{fab}
</ReactTransitionGroup>
```

@@ -20,0 +41,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc