@dpa-id-components/ui-searchinput
v0.2.6
Published
UiSearchInput vue component with dpa Design Kit
Downloads
2
Maintainers
Keywords
Readme
@dpa-id-components/ui-searchinput
UiInput
Vue 2.x input component based on the dpa Design Kit
Installation
yarn add @dpa-id-components/ui-searchinput
Usage
<!-- SomeComponent.vue using UiSearchInput -->
<template>
<UiSearchInput placeholder="placeholder"
has-add-entry-option="false" />
</template>
<script>
import UiSearchInput from "@dpa-id-components/ui-searchinput";
export default {
components: {
UiSearchInput,
},
data() {
return {
placeholder: "Type something...",
};
},
methods: {
handleEvent: console.log,
},
};
</script>
Demo
View a demo of <ui-searchinput>
on Storybook
API
Props
| Name | Type | Default | Description |
| ----------------- |-----------|-------------------------|-----------------------------------------------|
| placeholder
| String
| "default placeholder"
| Sets the placeholder |
| hasAddEntryOption
| Boolean
| false
| adds the option to add several rows & entries |
Events
| Name | Type | Description |
| ------- |---------------- | -------------------------------------------------------- |
| updateValue
| String
| Emitted when the internal value
of the input
changes |