Skip to content

This repo is a Next.js demo for accessible user search and pagination, featuring a paginated table of sample users with instant search and query-preserving navigation. It uses TypeScript, SCSS with BEM, and modern React best practices. The UI is responsive, semantic, and designed for accessibility

License

Notifications You must be signed in to change notification settings

ihaback/next-paginate-search

Repository files navigation

User Search & Pagination Demo

This repository is a Next.js application demonstrating accessible user search and pagination features. It uses TypeScript, modular SCSS, and modern React best practices.

Features

  • Paginated user table with 140 realistic sample users
  • Search users by name or email (case-insensitive)
  • Accessible search input with screen reader support
  • Pagination controls that preserve search queries
  • Responsive and semantic markup
  • Clean, maintainable code structure
  • Edit functionality is shown in the UI but not implemented

Tech Stack

  • Next.js (App Router)
  • TypeScript
  • SCSS modules

Usage

  1. Install dependencies:
    npm install
  2. Run the development server:
    npm run dev
  3. Open http://localhost:3000 in your browser.

Accessibility

  • Search input uses proper labels, roles, and instructions for screen readers
  • Table markup uses semantic elements and captions
  • Keyboard navigation is supported for search and pagination

Customization

  • Add more users in src/utils/users.ts
  • Adjust styles in src/sass/

CSS Methodology

This project uses the BEM (Block Element Modifier) naming convention for CSS classes, making styles predictable, maintainable, and scalable. See the SCSS files for examples.

About

This repo is a Next.js demo for accessible user search and pagination, featuring a paginated table of sample users with instant search and query-preserving navigation. It uses TypeScript, SCSS with BEM, and modern React best practices. The UI is responsive, semantic, and designed for accessibility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published