1.4.8 • Published 5 years ago
react-apple-menu v1.4.8
react-apple-menu
menu like apple dock
Install
npm i react-apple-menu -S
Usage
props | description | defaultvalue | type |
---|---|---|---|
zoom | pic zoom | 0.5 | number or string |
size | pic size | 64 | number or string |
stretch | stretch or not | false | boolean |
dock | open history dock | false | boolean |
portal | open portal at document | true | boolean |
left、top、right、bottom | menu position | bottom | boolean |
Include the Component
import Dock from "react-apple-menu";
import React from 'react';
class Component extends React.Component {
render() {
let pd = {padding:"8px"}
return (
<Dock>
<img style = {pd} onClick = { () => ( alert ("hello") )} src="https://raw.githubusercontent.com/Sherryer/Sherry-npm/master/static/images/1.png"/>
<img style = {pd} src = "https://raw.githubusercontent.com/Sherryer/Sherry-npm/master/static/images/2.png"/>
<img style = {pd} src = "https://raw.githubusercontent.com/Sherryer/Sherry-npm/master/static/images/3.png"/>
<img style = {pd} src = "https://raw.githubusercontent.com/Sherryer/Sherry-npm/master/static/images/4.png"/>
<img style = {pd} src = "https://raw.githubusercontent.com/Sherryer/Sherry-npm/master/static/images/5.png"/>
</Dock>
)
}
}
1.4.8
5 years ago
1.4.7
5 years ago
1.4.5
5 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.3
7 years ago
1.3.2
7 years ago
1.3.0
7 years ago
1.2.9
7 years ago
1.2.8
7 years ago
1.2.7
7 years ago
1.2.6
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago