@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
22 lines (19 loc) • 513 B
JavaScript
import { unref } from 'vue';
import '../dom/index.mjs';
import { unwrapElement } from './utils/unwrap-element.mjs';
import { arrow as arrow$1 } from '../dom/middleware.mjs';
function arrow(options) {
return {
name: "arrow",
options,
fn(args) {
const element = unwrapElement(unref(options.element));
if (element == null) {
return {};
}
return arrow$1({ element, padding: options.padding }).fn(args);
}
};
}
export { arrow };
//# sourceMappingURL=arrow.mjs.map