Informations

This component uses MazInput and therefore inherits all these options

Basic use

v-model="null"

Custom

v-model="null"


How to use it ?

  <template>
  <MazSearch
    v-model="query"
    :items="items"
    @request="searchResults"
  />
</template>

<script>
  import { MazSearch } from 'maz-ui'
  export default {
    components: { MazSearch }
    data () {
      return {
        query: null,
        items: []
      }
    },
    methods: {
      searchResults (query) {
        // get items on your api
      }
    }
  }
</script>