@inkline/inkline
Version:
Inkline is the Vue.js UI/UX Library built for creating your next design system
13 lines • 468 B
JavaScript
export function getStyleProperty(element, property) {
if (!element || !property || typeof window === 'undefined') {
return;
}
if (element.currentStyle) {
return element.currentStyle[property];
}
const computedStyle = window.getComputedStyle(element, null);
return computedStyle.getPropertyValue
? computedStyle.getPropertyValue(property)
: computedStyle[property];
}
//# sourceMappingURL=getStyleProperty.mjs.map