![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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 69 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.