
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
@feverus/react-custom-cursor
Advanced tools
npm i @feverus/react-custom-cursor
https://react-custom-cursor-demo.vercel.app
import { CustomCursor } from '@feverus/react-custom-cursor'
import '@feverus/react-custom-cursor/dist/style.css'
const muCursor = 'любой JSX элемент, строка или предустановленный курсор из списка ниже'
<CustomCursor cursor={muCursor}>
<>ваш компонент</>
</CustomCursor>
Название | Тип | По умолчанию | Описание |
---|---|---|---|
hoverClassName | string | style.css > .hover | Стиль курсора при наведении на <a> или <button> |
scale | number | 1 | Изменяет масштаб курсора |
rotating | boolean | 'auto' | 'onMove' | false | Без вращения |
true - Поворачивает курсор вокруг центра области. Обратите внимание, что угол в 0 радиан это направление от правого края к центру. Это важно для создания нового курсора. | |||
onMove - поворачивает курсор при движении мыши. | |||
auto - поворачивает курсор случайным образом раз в секунду. |
import { RotatingArrow } from '@feverus/react-custom-cursor'
import { LaserDot } from '@feverus/react-custom-cursor'
import { CircleWithText } from '@feverus/react-custom-cursor'
<CustomCursor cursor={<CircleWithText text={'any text'} color={'any color'} />}>
...
</CustomCursor>
Название | Тип | По умолчанию | Описание |
---|---|---|---|
text | string | '...' | Текст надписи (до 30 символоов) |
color | string | 'black' | Цвет надписи |
donutColor | string | '#eeeeee90' | Цвет подложки под текстом |
Оберните самый верхний компонент
<CustomCursor cursor={'🦝'}>
<App />
</CustomCursor>
Возможно, понадобится добавить стиль для него
#root>div {
width: 100vw;
min-height: 100vh;
}
FAQs
## Установка ``` npm i @feverus/react-custom-cursor ```
The npm package @feverus/react-custom-cursor receives a total of 7 weekly downloads. As such, @feverus/react-custom-cursor popularity was classified as not popular.
We found that @feverus/react-custom-cursor 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.