UNPKG

vue-form-kit

Version:

![NPM License](https://img.shields.io/npm/l/vue-form-kit) ![NPM Downloads](https://img.shields.io/npm/dt/vue-form-kit) ![NPM Version](https://img.shields.io/npm/v/vue-form-kit)

36 lines (35 loc) 824 B
import { openBlock as n, createBlock as o, resolveDynamicComponent as a, normalizeClass as r, withCtx as s, renderSlot as l, createTextVNode as c, toDisplayString as i } from "vue"; import { _ as u } from "./_plugin-vue_export-helper.9d74fd37.js"; const f = { name: "FormButton", props: { as: { type: String, default: "a" }, text: { type: String, default: "Submit" }, btnStyle: { type: String, default: "default" } } }; function d(e, m, t, p, _, S) { return n(), o(a(t.as), { class: r(["cursor-pointer btn", [`btn--${t.btnStyle}`]]) }, { default: s(() => [ l(e.$slots, "default", {}, () => [ c(i(t.text), 1) ]) ]), _: 3 }, 8, ["class"]); } const b = /* @__PURE__ */ u(f, [["render", d]]); export { b as default };