Skip to content

Commit e750103

Browse files
authored
Merge branch 'vue-docs-improve' into desctructure-use-feature
2 parents dc28dec + ffcda2d commit e750103

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/vue-sdk/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { BucketProvider } from "@bucketco/vue-sdk";
2424
</script>
2525
2626
<BucketProvider
27-
:publishableKey="publishableKey"
27+
:publishable-key="publishableKey"
2828
:user="{ id: 'user_123', name: 'John Doe', email: 'john@acme.com' }"
2929
:company="{ id: 'acme_inc', plan: 'pro' }"
3030
>
@@ -70,7 +70,7 @@ A number of special attributes exist:
7070

7171
```vue
7272
<BucketProvider
73-
:publishableKey="publishableKey"
73+
:publishable-key="publishableKey"
7474
:user="{ id: 'user_123', name: 'John Doe', email: 'john@acme.com' }"
7575
:company="{ id: 'acme_inc', plan: 'pro' }"
7676
>
@@ -138,7 +138,7 @@ BucketProvider lets you define a template to be shown while BucketProvider is in
138138
```vue
139139
<template>
140140
<BucketProvider
141-
:publishableKey="publishableKey"
141+
:publishable-key="publishableKey"
142142
:user="user"
143143
:company="{ id: 'acme_inc', plan: 'pro' }"
144144
>
@@ -202,6 +202,8 @@ const { isEnabled, track, requestFeedback, config } = useFeature("huddle");
202202
</template>
203203
```
204204

205+
See the reference docs for details.
206+
205207
### `useTrack()`
206208

207209
`useTrack()` returns a function which lets you send custom events to Bucket. It takes a string argument with the event name and optionally an object with properties to attach the event.

packages/vue-sdk/dev/plain/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const publishableKey = import.meta.env.VITE_PUBLISHABLE_KEY || "";
2020
</div>
2121
<BucketProvider
2222
v-else
23-
:publishableKey="publishableKey"
23+
:publishable-key="publishableKey"
2424
:user="user"
2525
:company="{ id: 'acme_inc', plan: 'pro' }"
2626
>

0 commit comments

Comments
 (0)