%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/components/
Upload File :
Create Path :
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/components/SearchForm.vue

<template>
  <div class="flex items-center w-auto md:w-full">
    <span class="block w-7 h-7 mr-5 icon-search bg-contain bg-center bg-no-repeat"></span>
    <input 
      @input="handleInput"
      v-model="content"
      type="search"
      name="search"
      class="search-input"
      :placeholder="placeholder" />
  </div>
</template>

<script>
export default {
  props: {
    value: {
      required: true
    },
    placeholder: {
      type: String
    },
  },

  data () {
    return {
      content: this.value
    }
  },

  methods: {
    handleInput(e) {
      this.$emit('input', this.content)
    }
  }
}
</script>

<style lang="postcss" scoped>
  .search-input {
    @apply w-full border-0 border-l-2 border-black py-1 pl-3 text-lg leading-5 text-white placeholder-white appearance-none;

    background-color: transparent;
    
    &:hover,
    &:focus {
      @apply outline-none ring-0 ring-opacity-0;
    }
  }
</style>

Zerion Mini Shell 1.0