0.2.5 • Published 2 years ago

@dpa-id-components/ui-icon-button v0.2.5

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

@dpa-id-components/ui-icon-button

UiIconButton Vue 2.x input component based on the dpa Design Kit

Installation

yarn add @dpa-id-components/ui-icon-button

Usage

<!-- SomeComponent.vue using UiIconButton -->
<template>
  <ui-icon-button title="Icon button">
    <div v-html="svgIcon"></div>
  </ui-icon-button>
</template>

<script>
  import UiIconButton from "@dpa-id-components/ui-icon-button";
  import svgIvon from "./icon.svg"; // Vue imports SVGs as strings by default

  export default {
    components: {
      UiIconButton,
    },
    data() {
      return { svgIcon };
    }
  };
</script>

Demo

View a demo of <ui-icon-button> on Storybook

API

Props

NameTypeDefaultDescription
titleStringButtonText description/title of the icon button

Events

NameTypeDescription
clickClickEventtriggerd when the button is clicked

Slots

NameDescription
defaultDfault slot for the SVG icon
0.2.5

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago