Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply VueUse composables in Vue 3/Nuxt projects to replace custom implementations with battle-tested utilities.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/useFps.md
1---2category: Sensors3---45# useFps67Reactive FPS (frames per second).89## Usage1011```ts12import { useFps } from '@vueuse/core'1314const fps = useFps()15```1617## Type Declarations1819```ts20export interface UseFpsOptions {21/**22* Calculate the FPS on every x frames.23* @default 1024*/25every?: number26}27export declare function useFps(options?: UseFpsOptions): ShallowRef<number>28```29