Skip to content

Commit

Permalink
docs: about $clicks and $nav context shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 31, 2023
1 parent d45ed05 commit 8024ec4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions custom/vue-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,19 @@ themeConfig:
```
{{ $slidev.themeConfigs.primary }} // '#213435'
```

### `$nav`

> Available since v0.43.0
A shorthand of `$slidev.nav`.

### `$clicks`

> Available since v0.43.0
A shorthand of `$slidev.nav.clicks`.

```html
<div v-if="$clicks > 3">Content</div>
```

0 comments on commit 8024ec4

Please sign in to comment.