0.2.6 • Published 2 years ago

@dpa-id-components/ui-searchinput v0.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@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

NameTypeDefaultDescription
placeholderString"default placeholder"Sets the placeholder
hasAddEntryOptionBooleanfalseadds the option to add several rows & entries

Events

NameTypeDescription
updateValueStringEmitted when the internal value of the input changes
0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.0

2 years ago