
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@snack-uikit/pagination
Advanced tools
npm i @snack-uikit/pagination
import { Pagination, PaginationSlider } from "@snack-uikit/pagination";
function App() {
const [page, setPage] = useState(args.page);
return (
<>
<Pagination page={page} onChange={setPage} total={10}/>
<PaginationSlider page={page} onChange={setPage} total={10}/>
</>
);
}
| name | type | default value | description |
|---|---|---|---|
| onChange* | (page: number, event?: MouseEvent<HTMLButtonElement | HTMLAnchorElement, MouseEvent>) => void | - | Колбэк смены значения |
| page* | number | - | Текущая страница |
| total* | number | - | Общее количество страниц |
| variant | enum Variant: "link", "button" | button | Варианты тега кнопок: или |
| maxLength | number | 7 | Максимальное количество страниц/элементов, помещающихся до транкейта |
| hrefFormatter | (page: number) => string | - | Колбэк форматирования ссылки |
| className | string | - | CSS класснейм |
| size | enum Size: "xs", "s" | s | Размер |
| name | type | default value | description |
|---|---|---|---|
| onChange* | (page: number) => void | - | Колбек смены значения |
| page* | number | - | Текущая страница |
| total* | number | - | Общее количество страниц |
| className | string | - | CSS класснейм |
FAQs
Навигация по страницам (с цифрами или точками)
We found that @snack-uikit/pagination demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.