
# Vitra Web Translator
A website translation tool from Vitra.ai



![Logo](https://vitra.ai/wp-content/uploads/2022/03/Vitra.ai-Logo-1920x540-Transparent.png)


## Installation

Install with npm

```bash
  npm install vitra-web-trans
```
    
## Usage/Examples

```javascript
import { VitraWebTranslator } from 'vitra-web-trans'
import 'vitra-web-trans/dist/esm/components/styles.css'

function App() {
  return (
      <VitraWebTranslator
        apiKey='vitra.VjopflOAtjF9coT7U3_*********_*'
        float={true}
        position='bottom-right'
      />
    )
}
```


## Props
| Prop     | Type    | Required | Description                                                  | Possible Values                                           | Default       |
| -------- | ------- | -------- | ------------------------------------------------------------ | --------------------------------------------------------- | ------------- |
| apiKey   | string  | Yes      | API Key generated from ```Vitra Web Translator``` site | API KEY                                                   | null          |
| float    | boolean | No       | Language selector dropdown position property                 | true \| false                                              | true          |
| position | string  | No       | Position of the language selector dropdown if it is floating | 'top-left' \| 'top-right' \| 'bottom-left' \| 'bottom-right' | 'bottom-left' |

## Support

For support, email support@vitra.ai.

