1.0.0 • Published 1 year ago

magic-mouse v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Magic Mouse

This is a lightweight React library to create an amazing mouse pointer for awsome website.

How to use


yarn add magic-mouse

or

npm instal magic-mouse

The import in one of the wrapper component of the webapp, like App or index

import MagicMouse from 'magic-mouse'

const App = ()=>{
	return (
		<wrapperComponent>
			<MagicMouse />
		</wrapperComponent>
	)
}

Props


It is possible to customize the pointer behaviour

PropsType (all optionals)DefaultOptionsDescription
typestring'light''light' 'dark' 'custom'Use
pointerColorstringnonees: #ff0000Use a custom color for the pointer. It works only if the type is custom
outlineColorstringnonees: #ff0000Use a custom color for the outline. It works only if the type is custom
hoverBackgroundstring'transparent'es: #fg66789Use a custom color for the background when the pointer is over a link
showCursorbooleanfalsetrue/falseshow the cursor over the pointer
circleWidthnumber8es: 16Customize the width of the pointer circle in px
outlineWidthnumber64es: 100Customize the width of the outline in px
circleWidthHovernumber150es: 200Customize the width of the outline in px when the pointer is over a link
useSvgOnHoverbooleanfalsetrue/falseUse a svg pointer instead the circle when the pointer is over a link
svgstringarrow Rightes '../square.svg'Use a custom svg pointer. It works only the the useSvgOnHover is true
1.0.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago