RepositoryTypeScriptIRIran
KL

klendi/react-top-loading-bar

A very simple, highly customisable youtube-like react loader component.

749sao
65fork
3issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: loading-bar

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: youtube-loader-indicator

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: react-loading-bar

#1 Repository Của Tháng

⚡ react-top-loading-bar — Thanh tiến trình đang tải kiểu YouTube, siêu nhẹ cho React

Một thành phần React đơn giản, hoạt động như thanh loading ở góc trên màn hình giống YouTube, hỗ trợ điều khiển bằng hooks, ref hoặc state.

react-top-loading-bar là một thư viện React (viết bằng TypeScript) cung cấp thanh chỉ báo tiến trình ở phía trên cùng màn hình, mô phỏng hiệu ứng loading của YouTube. Phù hợp cho các ứng dụng React cần hiển thị trạng thái tải nhanh mà không cần thiết kế phức tạp.

✨ Điểm nổi bật

  • useLoadingBar hook: khởi tạo và điều khiển thanh loading bằng start(), complete() và các phương thức khác.
  • LoadingBarContainer: bọc toàn bộ ứng dụng để quản lý trạng thái loading toàn cục.
  • Ref API: sử dụng ref để gọi trực tiếp các phương thức như continuousStart(), staticStart(), complete().
  • State-driven: điều khiển tiến trình bằng prop progress từ 0 đến 100.
  • Hai chế độ loading: continuous (tự động tăng ngẫu nhiên) và static (giữ nguyên giá trị).
  • Tùy biến màu sắc, chiều cao, bóng đổ: dễ dàng cá nhân hóa giao diện.
  • Phương thức tích hợp sẵn: start, complete, increase, decrease, getProgress.

💡 Vì sao đáng chú ý

Khác với các thư viện loading phức tạp, react-top-loading-bar tập trung vào một chức năng: hiển thị thanh tiến trình mỏng ở góc trên màn hình. Giao diện API linh hoạt (hooks, ref, state) giúp dễ dàng tích hợp vào bất kỳ dự án React nào. Đặc biệt hữu ích cho các trang SPA cần phản hồi nhanh khi chuyển trang hoặc gọi API.


#React #LoadingBar #TypeScript #UI #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
twentyhq/twenty

The open alternative to Salesforce, designed for AI.

60.1k
Oct 29, 2026
RepositoryTypeScript
pmndrs/zustand

🐻 Bear necessities for state management in React

58.9k
Oct 22, 2026
RepositoryTypeScript
chakra-ui/chakra-ui

Chakra UI is a component system for building SaaS products with speed ⚡️

40.7k
Oct 26, 2026
RepositoryTypeScript
tomcru/holy-loader

Holy Loader is a i18n-ready, lightweight, customizable top loading progress bar component for React / Next.js 13 & Next.js 14. #toploader #top-loader #nextjs-toploader #nprogress #nextjs-progressbar

145
Nov 13, 2025
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

458.2k
Oct 29, 2026
RepositoryJavaScript
DavidHDev/react-bits

The largest open-source library of animated, interactive, and customizable React & Next.js components for building standout web products and experiences. Built for humans and AI agents.

50.6k
Oct 19, 2026
RepositoryJavaScript
sudheerj/reactjs-interview-questions

List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!!

44.9k
Oct 13, 2026
RepositorySwift
fxm90/GradientLoadingBar

⌛️A customizable animated gradient loading bar.

894
Oct 8, 2026
RepositoryC#
Moh3nGolshani/BusyIndicator

Busy Indicator for WPF

170
Mar 13, 2025