
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@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 9 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.