├── .changeset ├── README.md └── config.json ├── .eslintrc.js ├── .github └── ISSUE_TEMPLATE │ ├── 1.bug_report.yml │ ├── 2.feature_request.yml │ └── config.yml ├── .gitignore ├── .husky └── pre-push ├── .npmrc ├── .prettierrc ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── apps ├── create-react-app │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── App.tsx │ │ ├── ProgressRouter.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── docs │ ├── .eslintrc.json │ ├── .gitignore │ ├── app │ │ ├── (home) │ │ │ ├── _components │ │ │ │ ├── header.tsx │ │ │ │ └── hero.tsx │ │ │ ├── layout.tsx │ │ │ └── page.tsx │ │ ├── api │ │ │ └── search │ │ │ │ └── route.ts │ │ ├── docs │ │ │ ├── [[...slug]] │ │ │ │ └── page.tsx │ │ │ └── layout.tsx │ │ ├── favicon.ico │ │ ├── globals.css │ │ ├── layout.config.tsx │ │ ├── layout.tsx │ │ ├── providers.tsx │ │ ├── robots.txt │ │ └── sitemap.ts │ ├── components.json │ ├── components │ │ ├── logo.tsx │ │ └── progress-type-table.tsx │ ├── content │ │ └── docs │ │ │ ├── configure.mdx │ │ │ ├── css.mdx │ │ │ ├── dec.mdx │ │ │ ├── done.mdx │ │ │ ├── get-positioning-css.mdx │ │ │ ├── inc.mdx │ │ │ ├── index.mdx │ │ │ ├── installation.mdx │ │ │ ├── is-rendered.mdx │ │ │ ├── is-started.mdx │ │ │ ├── meta.json │ │ │ ├── migration.mdx │ │ │ ├── next │ │ │ ├── components │ │ │ │ └── progress-provider.mdx │ │ │ ├── data-attributes │ │ │ │ ├── disable-progress.mdx │ │ │ │ ├── meta.json │ │ │ │ └── prevent-progress.mdx │ │ │ ├── hooks │ │ │ │ └── use-router.mdx │ │ │ ├── installation.mdx │ │ │ ├── meta.json │ │ │ ├── migration.mdx │ │ │ ├── quick-start.mdx │ │ │ └── whats-new.mdx │ │ │ ├── other-projects.mdx │ │ │ ├── pause.mdx │ │ │ ├── promise.mdx │ │ │ ├── quick-start.mdx │ │ │ ├── react │ │ │ ├── components │ │ │ │ ├── progress-components │ │ │ │ │ ├── bar.mdx │ │ │ │ │ ├── indeterminate.mdx │ │ │ │ │ ├── meta.json │ │ │ │ │ ├── peg.mdx │ │ │ │ │ ├── progress.mdx │ │ │ │ │ ├── spinner-icon.mdx │ │ │ │ │ └── spinner.mdx │ │ │ │ └── progress-provider.mdx │ │ │ ├── hooks │ │ │ │ ├── use-anchor-progress.mdx │ │ │ │ └── use-progress.mdx │ │ │ ├── installation.mdx │ │ │ ├── meta.json │ │ │ ├── quick-start.mdx │ │ │ └── utils │ │ │ │ ├── with-memo.mdx │ │ │ │ └── with-suspense.mdx │ │ │ ├── remix │ │ │ ├── data-attributes │ │ │ │ ├── disable-progress.mdx │ │ │ │ ├── meta.json │ │ │ │ └── prevent-progress.mdx │ │ │ ├── hooks │ │ │ │ └── use-navigate.mdx │ │ │ ├── installation.mdx │ │ │ ├── meta.json │ │ │ └── quick-start.mdx │ │ │ ├── remove.mdx │ │ │ ├── render.mdx │ │ │ ├── reset.mdx │ │ │ ├── resume.mdx │ │ │ ├── roadmap.mdx │ │ │ ├── same-url.mdx │ │ │ ├── set.mdx │ │ │ ├── start.mdx │ │ │ ├── style.mdx │ │ │ ├── trickle.mdx │ │ │ ├── upgrade.mdx │ │ │ └── vue │ │ │ ├── components │ │ │ ├── progress-components │ │ │ │ ├── bar.mdx │ │ │ │ ├── indeterminate.mdx │ │ │ │ ├── meta.json │ │ │ │ ├── peg.mdx │ │ │ │ ├── progress.mdx │ │ │ │ ├── spinner-icon.mdx │ │ │ │ └── spinner.mdx │ │ │ └── progress-provider.mdx │ │ │ ├── composables │ │ │ ├── use-anchor-progress.mdx │ │ │ └── use-progress.mdx │ │ │ ├── installation.mdx │ │ │ ├── meta.json │ │ │ └── quick-start.mdx │ ├── lib │ │ └── source.ts │ ├── next.config.mjs │ ├── package.json │ ├── postcss.config.mjs │ ├── public │ │ └── animate-ui.mp4 │ ├── site.config.ts │ ├── source.config.ts │ ├── tailwind.config.ts │ └── tsconfig.json ├── html │ ├── index.css │ ├── index.esm.html │ └── index.html ├── next-app-dir │ ├── .gitignore │ ├── __tests__ │ │ ├── e2e │ │ │ └── example.spec.ts │ │ └── unit │ │ │ └── home.test.tsx │ ├── app │ │ └── [locale] │ │ │ ├── dashboard │ │ │ └── page.tsx │ │ │ ├── docs │ │ │ └── page.tsx │ │ │ ├── favicon.ico │ │ │ ├── globals.css │ │ │ ├── layout.tsx │ │ │ ├── load │ │ │ └── page.tsx │ │ │ ├── mounted │ │ │ └── page.tsx │ │ │ ├── page.tsx │ │ │ └── providers.tsx │ ├── eslint.config.js │ ├── i18n │ │ ├── navigation.ts │ │ ├── request.ts │ │ └── routing.ts │ ├── jest.config.ts │ ├── jest.setup.ts │ ├── messages │ │ ├── en.json │ │ └── fr.json │ ├── middleware.ts │ ├── next-env.d.ts │ ├── next.config.mjs │ ├── package.json │ ├── playwright.config.ts │ ├── postcss.config.mjs │ ├── tailwind.config.ts │ └── tsconfig.json ├── pages-app-dir │ ├── eslint.config.js │ ├── globals.css │ ├── next-env.d.ts │ ├── next.config.mjs │ ├── package.json │ ├── pages │ │ ├── _app.tsx │ │ ├── _document.tsx │ │ ├── dashboard.tsx │ │ └── index.tsx │ ├── postcss.config.mjs │ ├── tailwind.config.ts │ └── tsconfig.json ├── remix-app │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── README.md │ ├── app │ │ ├── entry.client.tsx │ │ ├── entry.server.tsx │ │ ├── root.tsx │ │ ├── routes │ │ │ ├── _index.tsx │ │ │ ├── dashboard.tsx │ │ │ └── profile.tsx │ │ └── tailwind.css │ ├── package.json │ ├── postcss.config.js │ ├── public │ │ ├── favicon.ico │ │ ├── logo-dark.png │ │ └── logo-light.png │ ├── tailwind.config.ts │ ├── tsconfig.json │ └── vite.config.ts └── vue-app │ ├── .editorconfig │ ├── .gitattributes │ ├── .gitignore │ ├── .prettierrc.json │ ├── .vscode │ └── extensions.json │ ├── README.md │ ├── env.d.ts │ ├── eslint.config.ts │ ├── index.html │ ├── package.json │ ├── public │ └── favicon.ico │ ├── src │ ├── App.vue │ ├── Root.vue │ ├── assets │ │ ├── base.css │ │ ├── logo.svg │ │ └── main.css │ ├── components │ │ ├── HelloWorld.vue │ │ ├── ProgressBar.vue │ │ ├── TheWelcome.vue │ │ ├── WelcomeItem.vue │ │ └── icons │ │ │ ├── IconCommunity.vue │ │ │ ├── IconDocumentation.vue │ │ │ ├── IconEcosystem.vue │ │ │ ├── IconSupport.vue │ │ │ └── IconTooling.vue │ ├── main.ts │ ├── router │ │ └── index.ts │ └── views │ │ ├── AboutView.vue │ │ └── HomeView.vue │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.node.json │ └── vite.config.ts ├── package.json ├── packages ├── core │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── __tests__ │ │ ├── get-anchor-property.test.ts │ │ ├── lib.test.ts │ │ ├── progress.test.ts │ │ └── utils.test.ts │ ├── eslint.config.js │ ├── jest.config.ts │ ├── package.json │ ├── src │ │ ├── index.css │ │ ├── index.ts │ │ ├── lib │ │ │ ├── css.ts │ │ │ ├── get-anchor-property.ts │ │ │ ├── index.ts │ │ │ └── same-url.ts │ │ ├── progress.ts │ │ ├── types.ts │ │ └── utils │ │ │ ├── clamp.ts │ │ │ ├── class.ts │ │ │ ├── element.ts │ │ │ ├── index.ts │ │ │ ├── to-bar-perc.ts │ │ │ └── to-css.ts │ ├── tsconfig.json │ └── tsup.config.ts ├── eslint-config │ ├── README.md │ ├── base.js │ ├── next.js │ ├── package.json │ ├── react-internal.js │ └── vue.js ├── next │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── eslint.config.js │ ├── package.json │ ├── src │ │ ├── app.ts │ │ ├── components │ │ │ ├── app-progress.tsx │ │ │ └── pages-progress.tsx │ │ ├── hooks │ │ │ └── use-router.ts │ │ ├── index.ts │ │ ├── pages.ts │ │ ├── providers │ │ │ ├── app-progress-provider.tsx │ │ │ ├── next-progress-provider.tsx │ │ │ └── pages-progress-provider.tsx │ │ └── types.ts │ ├── tsconfig.json │ └── tsup.config.ts ├── react │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── __tests__ │ │ ├── components │ │ │ ├── bar.test.tsx │ │ │ ├── indeterminate.test.tsx │ │ │ ├── peg.test.tsx │ │ │ ├── progress.test.tsx │ │ │ ├── spinner-icon.test.tsx │ │ │ └── spinner.test.tsx │ │ ├── hooks │ │ │ └── use-anchor-progress.test.tsx │ │ ├── providers │ │ │ └── progress-provider.test.tsx │ │ └── utils │ │ │ ├── classnames.test.ts │ │ │ ├── with-memo.test.tsx │ │ │ └── with-suspense.test.tsx │ ├── eslint.config.js │ ├── jest.config.ts │ ├── jest.setup.ts │ ├── package.json │ ├── src │ │ ├── components │ │ │ ├── bar.tsx │ │ │ ├── indeterminate.tsx │ │ │ ├── index.tsx │ │ │ ├── peg.tsx │ │ │ ├── progress.tsx │ │ │ ├── spinner-icon.tsx │ │ │ └── spinner.tsx │ │ ├── hooks │ │ │ └── use-anchor-progress.tsx │ │ ├── index.tsx │ │ ├── providers │ │ │ └── progress-provider.tsx │ │ ├── types.ts │ │ └── utils │ │ │ ├── classnames.ts │ │ │ ├── index.ts │ │ │ ├── with-memo.tsx │ │ │ └── with-suspense.tsx │ ├── tsconfig.json │ └── tsup.config.ts ├── remix │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── eslint.config.js │ ├── package.json │ ├── src │ │ ├── components │ │ │ └── remix-progress.tsx │ │ ├── hooks │ │ │ └── use-navigate.tsx │ │ ├── index.tsx │ │ ├── providers │ │ │ └── remix-progress-provider.tsx │ │ └── types.ts │ ├── tsconfig.json │ └── tsup.config.ts ├── typescript-config │ ├── README.md │ ├── base.json │ ├── nextjs.json │ ├── package.json │ └── react-library.json ├── ui │ ├── components.json │ ├── eslint.config.js │ ├── package.json │ ├── postcss.config.mjs │ ├── src │ │ ├── components │ │ │ └── ui │ │ │ │ ├── background-lines.tsx │ │ │ │ ├── button.tsx │ │ │ │ ├── hero-highlight.tsx │ │ │ │ └── theme-switcher.tsx │ │ ├── lib │ │ │ └── utils.ts │ │ └── styles │ │ │ └── globals.css │ ├── tailwind.config.ts │ ├── tsconfig.json │ └── tsconfig.lint.json └── vue │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── __tests__ │ ├── components │ │ ├── bar.test.ts │ │ ├── indeterminate.test.ts │ │ ├── peg.test.ts │ │ ├── progress.test.ts │ │ ├── spinner-icon.test.ts │ │ └── spinner.test.ts │ ├── composables │ │ └── use-anchor-progress.test.ts │ ├── providers │ │ └── progress-provider.test.ts │ └── utils │ │ └── classnames.test.ts │ ├── eslint.config.js │ ├── jest.config.ts │ ├── jest.setup.ts │ ├── package.json │ ├── shims-vue.d.ts │ ├── src │ ├── components │ │ ├── bar.vue │ │ ├── indeterminate.vue │ │ ├── index.ts │ │ ├── peg.vue │ │ ├── progress.vue │ │ ├── spinner-icon.vue │ │ └── spinner.vue │ ├── composables │ │ ├── index.ts │ │ ├── use-anchor-progress.ts │ │ └── use-progress.ts │ ├── index.ts │ ├── providers │ │ └── progress-provider.vue │ ├── types.ts │ └── utils │ │ └── classnames.ts │ ├── tsconfig.json │ ├── vite.config.ts │ └── vue3JestHack.js ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── tsconfig.json └── turbo.json /.changeset/README.md: -------------------------------------------------------------------------------- 1 | # Changesets 2 | 3 | Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works 4 | with multi-package repos, or single-package repos to help you version and publish your code. You can 5 | find the full documentation for it [in our repository](https://github.com/changesets/changesets) 6 | 7 | We have a quick list of common questions to get you started engaging with this project in 8 | [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) 9 | -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json", 3 | "changelog": "@changesets/cli/changelog", 4 | "commit": false, 5 | "fixed": [], 6 | "linked": [], 7 | "access": "restricted", 8 | "baseBranch": "main", 9 | "updateInternalDependencies": "patch", 10 | "ignore": [ 11 | "next-app-dir", 12 | "pages-app-dir", 13 | "docs", 14 | "create-react-app", 15 | "remix-app" 16 | ], 17 | "publish": false, 18 | "version": { 19 | "mode": "independent" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | // This configuration only applies to the package manager root. 2 | /** @type {import("eslint").Linter.Config} */ 3 | module.exports = { 4 | ignorePatterns: ["apps/**", "packages/**"], 5 | extends: ["@workspace/eslint-config/library.js"], 6 | parser: "@typescript-eslint/parser", 7 | parserOptions: { 8 | project: true, 9 | }, 10 | } 11 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/1.bug_report.yml: -------------------------------------------------------------------------------- 1 | name: 🐞 Bug report 2 | description: Report a bug with BProgress packages or docs. 3 | labels: ['bug'] 4 | body: 5 | - type: textarea 6 | attributes: 7 | label: Description 8 | description: A detailed description of the issue that you are encountering, and how other people can reproduce it. This includes useful information such as the framework you use, how you use BProgress, etc. 9 | placeholder: | 10 | Reproduction steps... 11 | validations: 12 | required: true 13 | - type: textarea 14 | attributes: 15 | label: Code example 16 | description: Provide an example code snippet that has the problem. 17 | placeholder: | 18 | import '@bprogress/core/css'; 19 | import { BProgress } from '@bprogress/core'; 20 | ... 21 | - type: input 22 | id: provider 23 | attributes: 24 | label: Package used (or docs) 25 | description: The package (e.g. `@bprogress/core`) that you are using, and its version (e.g. `1.0.0`). 26 | placeholder: | 27 | @bprogress/core v1.0.0 28 | - type: textarea 29 | attributes: 30 | label: Additional context 31 | description: | 32 | Any extra information that might help us investigate. 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/2.feature_request.yml: -------------------------------------------------------------------------------- 1 | name: ✨ Feature Request 2 | description: Propose a new feature for BProgress. 3 | labels: ['enhancement'] 4 | body: 5 | - type: textarea 6 | attributes: 7 | label: Feature Description 8 | description: A detailed description of the feature you are proposing. 9 | placeholder: | 10 | Feature description... 11 | validations: 12 | required: true 13 | - type: textarea 14 | attributes: 15 | label: Use Cases 16 | description: Provide use cases where this feature would be beneficial. 17 | placeholder: | 18 | Use case... 19 | - type: input 20 | id: provider 21 | attributes: 22 | label: Package 23 | description: The package (e.g. `@bprogress/core`) concerned by the feature 24 | placeholder: | 25 | @bprogress/core 26 | - type: textarea 27 | attributes: 28 | label: Additional context 29 | description: | 30 | Any extra information that might help us understand your feature request. 31 | placeholder: | 32 | Additional context... 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: 💬 Ask a question 4 | url: https://github.com/imskyleen/bprogress/discussions 5 | about: Please ask questions in our discussions forum. 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # Dependencies 4 | node_modules 5 | .pnp 6 | .pnp.js 7 | 8 | # Local env files 9 | .env 10 | .env.local 11 | .env.development.local 12 | .env.test.local 13 | .env.production.local 14 | 15 | # Testing 16 | coverage 17 | 18 | # Turbo 19 | .turbo 20 | 21 | # Vercel 22 | .vercel 23 | 24 | # Build Outputs 25 | .next/ 26 | out/ 27 | build 28 | dist 29 | 30 | 31 | # Debug 32 | npm-debug.log* 33 | 34 | # Misc 35 | .DS_Store 36 | *.pem 37 | -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- 1 | pnpm lint && pnpm test && pnpm build 2 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imskyleen/bprogress/f3c776a8d00cbcd55017439bf8a5053f9dbc0976/.npmrc -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "trailingComma": "all", 3 | "tabWidth": 2, 4 | "semi": true, 5 | "singleQuote": true 6 | } 7 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5502 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Elliot Sutton 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /apps/create-react-app/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /apps/create-react-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "create-react-app", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@types/node": "^16.18.126", 7 | "@types/react": "^19.0.1", 8 | "@types/react-dom": "^19.0.2", 9 | "react": "^19.0.0", 10 | "react-dom": "^19.0.0", 11 | "react-scripts": "5.0.1", 12 | "typescript": "^4.9.5", 13 | "web-vitals": "^2.1.4", 14 | "@bprogress/react": "workspace:*" 15 | }, 16 | "scripts": { 17 | "start": "DISABLE_ESLINT_PLUGIN=true react-scripts start", 18 | "eject": "react-scripts eject" 19 | }, 20 | "eslintConfig": { 21 | "extends": [ 22 | "react-app", 23 | "react-app/jest" 24 | ] 25 | }, 26 | "browserslist": { 27 | "production": [ 28 | ">0.2%", 29 | "not dead", 30 | "not op_mini all" 31 | ], 32 | "development": [ 33 | "last 1 chrome version", 34 | "last 1 firefox version", 35 | "last 1 safari version" 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /apps/create-react-app/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imskyleen/bprogress/f3c776a8d00cbcd55017439bf8a5053f9dbc0976/apps/create-react-app/public/favicon.ico -------------------------------------------------------------------------------- /apps/create-react-app/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 |(Component: React.ComponentType
, ignoreKeys?: string[]): React.MemoExoticComponent (Component: ComponentType ): (props: P) => React.JSX.Element;
18 | ```
19 |
--------------------------------------------------------------------------------
/apps/docs/content/docs/remix/data-attributes/disable-progress.mdx:
--------------------------------------------------------------------------------
1 | ---
2 | title: Disable progress
3 | description: Disable the progress bar on specific links
4 | ---
5 |
6 | import { Callout } from 'fumadocs-ui/components/callout';
7 |
8 | You can disable the progress bar on specific links by adding the `data-disable-progress={true}` attribute.
9 |
10 | ,
31 | ignoreKeys: string[] = ['memo', 'shouldCompareComplexProps'],
32 | ) {
33 | return memo(Component, (prevProps, nextProps) => {
34 | if (nextProps.memo === false) return false;
35 | if (!nextProps.shouldCompareComplexProps) return true;
36 | return shallowCompareProps(prevProps, nextProps, ignoreKeys);
37 | });
38 | }
39 |
--------------------------------------------------------------------------------
/packages/react/src/utils/with-suspense.tsx:
--------------------------------------------------------------------------------
1 | import React, { ComponentType, Suspense } from 'react';
2 |
3 | export function withSuspense (Component: ComponentType ) {
4 | return function WithSuspenseComponent(props: P) {
5 | return (
6 | BProgress
19 |
20 |
26 | >
27 | );
28 | };
29 |
30 | export default Mounted;
31 |
--------------------------------------------------------------------------------
/apps/next-app-dir/app/[locale]/providers.tsx:
--------------------------------------------------------------------------------
1 | 'use client';
2 |
3 | import {
4 | Bar,
5 | Progress,
6 | AppProgressProvider as ProgressProvider,
7 | Spinner,
8 | SpinnerIcon,
9 | } from '@bprogress/next';
10 |
11 | const Providers = ({ children }: { children: React.ReactNode }) => {
12 | return (
13 | {{ msg }}
10 |
11 | You’ve successfully created a project with
12 | Vite +
13 | Vue 3. What's next?
14 |
15 |
8 |
10 | This is an about page
4 |