n8n/packages/design-system/src/components/N8nIconButton/IconButton.vue
कारतोफ्फेलस्क्रिप्ट™ 13659d036f
ci: Ensure that eslint runs on all frontend code (no-changelog) (#4602)
* ensure that eslint runs on all frontend code

* remove tslint from `design-system`

* enable prettier and eslint-prettier for `design-system`

* Delete tslint.json

* use a single editorconfig for the repo

* enable prettier for all code in `design-system`

* more linting fixes on design-system

* ignore coverage for git and prettier

* lintfix on editor-ui
2022-11-15 18:20:54 +01:00

55 lines
828 B
Vue

<template>
<n8n-button square v-bind="$props" v-on="$listeners" />
</template>
<script lang="ts">
import N8nButton from '../N8nButton';
import Vue from 'vue';
export default Vue.extend({
name: 'n8n-icon-button',
components: {
N8nButton,
},
props: {
type: {
type: String,
default: 'primary',
},
size: {
type: String,
default: 'medium',
},
loading: {
type: Boolean,
default: false,
},
outline: {
type: Boolean,
default: false,
},
text: {
type: Boolean,
default: false,
},
disabled: {
type: Boolean,
default: false,
},
active: {
type: Boolean,
default: false,
},
icon: {
type: [String, Array],
required: true,
},
float: {
type: String,
validator: (value: string): boolean => ['left', 'right'].includes(value),
},
},
});
</script>