UNPKG

vuetify

Version:

Vue Material Component Framework

24 lines 699 B
import { camelize, capitalize, h } from 'vue'; import { genericComponent } from "./defineComponent.mjs"; export function createSimpleFunctional(klass) { let tag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'div'; let name = arguments.length > 2 ? arguments[2] : undefined; return genericComponent()({ name: name ?? capitalize(camelize(klass.replace(/__/g, '-'))), props: { tag: { type: String, default: tag } }, setup(props, _ref) { let { slots } = _ref; return () => h(props.tag, { class: klass }, slots.default?.()); } }); } //# sourceMappingURL=createSimpleFunctional.mjs.map