feat: Complete fleet — 94 skills across 10+ domains
Pulled ALL skills from 15 source repositories: - anthropics/skills: 16 (docs, design, MCP, testing) - obra/superpowers: 14 (TDD, debugging, agents, planning) - coreyhaines31/marketingskills: 25 (marketing, CRO, SEO, growth) - better-auth/skills: 5 (auth patterns) - vercel-labs/agent-skills: 5 (React, design, Vercel) - antfu/skills: 16 (Vue, Vite, Vitest, pnpm, Turborepo) - Plus 13 individual skills from various repos Mosaic Stack is not limited to coding — the Orchestrator and subagents serve coding, business, design, marketing, writing, logistics, analysis, and more. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
75
skills/vueuse-functions/references/useNow.md
Normal file
75
skills/vueuse-functions/references/useNow.md
Normal file
@@ -0,0 +1,75 @@
|
||||
---
|
||||
category: Animation
|
||||
---
|
||||
|
||||
# useNow
|
||||
|
||||
Reactive current Date instance.
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { useNow } from '@vueuse/core'
|
||||
|
||||
const now = useNow()
|
||||
```
|
||||
|
||||
```ts
|
||||
import { useNow } from '@vueuse/core'
|
||||
// ---cut---
|
||||
const { now, pause, resume } = useNow({ controls: true })
|
||||
```
|
||||
|
||||
## Component Usage
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<UseNow v-slot="{ now, pause, resume }">
|
||||
Now: {{ now }}
|
||||
<button @click="pause()">
|
||||
Pause
|
||||
</button>
|
||||
<button @click="resume()">
|
||||
Resume
|
||||
</button>
|
||||
</UseNow>
|
||||
</template>
|
||||
```
|
||||
|
||||
## Type Declarations
|
||||
|
||||
```ts
|
||||
export interface UseNowOptions<Controls extends boolean> {
|
||||
/**
|
||||
* Expose more controls
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
controls?: Controls
|
||||
/**
|
||||
* Start the clock immediately
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
immediate?: boolean
|
||||
/**
|
||||
* Update interval in milliseconds, or use requestAnimationFrame
|
||||
*
|
||||
* @default requestAnimationFrame
|
||||
*/
|
||||
interval?: "requestAnimationFrame" | number
|
||||
}
|
||||
/**
|
||||
* Reactive current Date instance.
|
||||
*
|
||||
* @see https://vueuse.org/useNow
|
||||
* @param options
|
||||
*
|
||||
* @__NO_SIDE_EFFECTS__
|
||||
*/
|
||||
export declare function useNow(options?: UseNowOptions<false>): Ref<Date>
|
||||
export declare function useNow(options: UseNowOptions<true>): {
|
||||
now: Ref<Date>
|
||||
} & Pausable
|
||||
export type UseNowReturn = ReturnType<typeof useNow>
|
||||
```
|
||||
Reference in New Issue
Block a user