Socket
Book a DemoInstallSign in
Socket

@shcnwc/shadcn-pagination-web-component

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shcnwc/shadcn-pagination-web-component

Pagination with page navigation, next and previous links.

1.3.2
latest
npmnpm
Version published
Weekly downloads
35
-89.49%
Maintainers
1
Weekly downloads
 
Created
Source

Pagination

Pagination with page navigation, next and previous links.

NPM Version Package Size License

Installation

npm install @shcnwc/shadcn-pagination-web-component

Usage

<script type="module">
  import "@shcnwc/shadcn-pagination-web-component";
</script>

<pagination-root count={100} perpage={10}>
  {#snippet children({ pages, currentpage })}
    <pagination-content>
      <pagination-item>
        <pagination-prevbutton />
      </pagination-item>
      {#each pages as page (page-key)}
        {#if page-type === "ellipsis"}
          <pagination-item>
            <pagination-ellipsis />
          </pagination-item>
        {:else}
          <pagination-item>
            <pagination-link {page} isactive={currentpage === page-value}>
              {page-value}
            </pagination-link>
          </pagination-item>
        {/if}
      {/each}
      <pagination-item>
        <pagination-nextbutton />
      </pagination-item>
    </pagination-content>
  {/snippet}
</pagination-root>

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

License

This project is licensed under the MIT License.

FAQs

Package last updated on 17 Aug 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.