open-index/open-npm huggingface dataset:
npm package: @gemx-dev/experiment-vue
Description: Vue 3 wrapper for `@gemx-dev/experiment` Web Component.
Latest version: 3.5.18

# `@gemx-dev/experiment-vue`

Vue 3 wrapper for `@gemx-dev/experiment` Web Component.

## Install

```bash
pnpm add @gemx-dev/experiment-vue @gemx-dev/experiment
```

## Usage

```ts
<script setup lang="ts">
import { GxExperimentWrapper } from '@gemx-dev/experiment-vue';

const config = {
  id: 'home-hero-test',
  variants: ['A', 'B'],
  weights: [50, 50],
};
</script>

<template>
  <GxExperimentWrapper :config="config" :gaTracking="false" :autoTrack="true">
    <div>Variant content here</div>
  </GxExperimentWrapper>
</template>
```