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

0.2.5 • Public • Published

@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

Name Type Default Description
title String Button Text description/title of the icon button

Events

Name Type Description
click ClickEvent triggerd when the button is clicked

Slots

Name Description
default Dfault slot for the SVG icon

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

1

Version

0.2.5

License

MIT

Unpacked Size

334 kB

Total Files

10

Last publish

Collaborators

  • goersch.juliane
  • martinherweg
  • borchert.manja
  • roessel.nico
  • karlbanke
  • hajo.cirksena.dpa
  • schubert.florian
  • michelle3105
  • arifpehlivan
  • dpa-connect-deployment
  • antje.sommer
  • mlnmln
  • kgierke
  • andrewbeng89
  • mridul_dpa