Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@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
Навигация по страницам (с цифрами или точками)
The npm package @snack-uikit/pagination receives a total of 178 weekly downloads. As such, @snack-uikit/pagination popularity was classified as not popular.
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 0 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.