skgsearch-components

### npm install this project as dev dependencies ```bash npm install git+ssh://git@git.silot.tech:lab/skgsearch-components.git --save-dev ``` ### react in vue use [vuera](https://github.com/akxcv/vuera) install vuera ``` npm install vuera --save ``` confi

Usage no npm install needed!

<script type="module">
  import skgsearchComponents from 'https://cdn.skypack.dev/skgsearch-components';
</script>

README

Usage

npm install this project as dev dependencies

npm install git+ssh://git@git.silot.tech:lab/skgsearch-components.git --save-dev

react in vue use vuera

install vuera

npm install vuera --save

config vue

import Vue from 'vue'                                                                                                             
import App from './App.vue'
import { VuePlugin } from 'vuera'
 
Vue.config.productionTip = false
Vue.use(VuePlugin)
 
new Vue({
  render: h => h(App)
}).$mount('#app')

use the component

<template>                                                                                                                        
  <div id="app">
    <fact-check v-if="api" :api="api" :query="query" />
  </div>
</template>
 
<script>
import FactCheck from 'skgsearch-components/lib/shared/FactCheck'
export default {
  data () {
    return {
      api: 'http://lab.silot.tech:8300/api',
      query: {taxId:'123'}
    }
  },
  name: 'app',
  components: {
    'fact-check': FactCheck
  }
}
</script>

react in react

import FactCheck from 'skgsearch-components/lib/shared/FactCheck'

export default (props)=>{
  const query = {
    taxId:'tax id',
    name:'name'
  }
  return <FactCheck api={'http://lab.silot.tech:8300/api'} query={quer}/>
}