# UiSearchInput

## Usage

```html
<template>
  <UiSearchInput
    :has-add-entry-option="true"
    :model-value="internalValue"
    label="This is a Label"
    placeholder="This is a placeholder"
    @update:model-value="handleInput"
    @handle-keypress="handleKeypress"
    @blur="handleBlur"
  />
</template>

<script setup>
import UiSearchInput from "@dpa-id-components/dpa-shared-components/components/UiSearchInput/UiSearchInput.vue";

const internalValue = ref([""]);

function handleInput(newValue) {
  internalValue.value = newValue;
}

function handleKeypress({ event, value }) {
  if (event.key === 'Enter') {
    // do something when enter key is pressed
  }
}

function handleBlur(value) {
  // value is the same as from handleInput
}
</script>
```
