Button

Props

PropTypeDefault/Notes
@clickFunc()Handle event emitted from the component. Ex: @click={funcName}
secondaryBooleanDefault: false
tertiaryBooleanDefault: false
destructiveBooleanDefault: false
disabledBooleanDefault: false

Example usage

<template>
	<Button @click="apply">Apply</Button>
	<Button @click="cancel" secondary>Cancel</Button>
</template>

<script>
	import { Button } from 'figma-plugin-ds-vue'

	export default {
		components: {
			Button
		},
		methods: {
			apply() {
				// do something
			},
			cancel() {
				// do something
			}
		}
	}
</script>