Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hennge/vue3-pagination

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hennge/vue3-pagination

A Vue 3 component for pagination.

  • 1.0.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.4K
increased by15.39%
Maintainers
3
Weekly downloads
 
Created
Source

Vue 3 Pagination

A Vue 3 component for pagination.

Table of Contents

  • Demo
  • Installation
  • Getting Started
  • License
  • Contact

Demo

Demo

Installation

Package is available on NPM: https://www.npmjs.com/package/vue3-pagination

// with npm
npm install @hennge/vue3-pagination
// with yarn
yarn add @hennge/vue3-pagination

The component is packaged mainly for use with bundlers, if you require a browser build - post an issue.

Getting Started

Import component

import VPagination from "@hennge/vue3-pagination";
import "@hennge/vue3-pagination/dist/vue3-pagination.css";

export default {
  ...
  components: {
    VPagination
  }
  ...
}

How to use

<template>
  <v-pagination
    v-model="page"
    :pages="10"
    :range-size="1"
    active-color="#DCEDFF"
    @update:modelValue="updateHandler"
  />
</template>

Props and attributes

Main interaction with the pagination is done via v-model with Number as expected type of the value passed.

IDTypeDefaultDescription
pagesNumberTotal number of pages
rangeSizeNumber1Number of page around the current page
activeColorString#DCEDFFBackground color of the current page
hideFirstButtonBooleanfalseHide the button to go to the first page
hideLastButtonBooleanfalseHide the button to go to the last page

Events

IDOutputDescription
update:modelValueNumberThe current page has been updated

License

MIT

Copyright © 2020 - Present, Julian Springaux

Contact

Keywords

FAQs

Package last updated on 31 Mar 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc