EButton
The EButton
component replaces the standard html button and encapsulates well-defined logic that can be reused throughout the app.
Basic Usage
template
<script setup>
import { EButton } from "easy-kit-component";
</script>
<template>
<EButton>Click Here</EButton>
</template>
Trigger Event
To trigger an event, the classic procedure provided by Vue is used.
template
<EButton @click="exampleFunction">Show Alert</EButton>
API Reference
- Props
ts
type ButtonType = "button" | "submit" | "reset";
interface Button {
type?: ButtonType;
disabled?: boolean;
formId?: string;
autoFocus?: boolean;
}