balm-ui
Version:
A modular and customizable UI library based on Material Design and Vue 3
27 lines (23 loc) • 437 B
JavaScript
// Define global constants
const UI_GLOBAL = {
cssClasses: {
icon: 'material-icons'
},
EVENTS: {
CLICK: 'click'
},
getMaterialIconClass: (...componentClasses) => [
UI_GLOBAL.cssClasses.icon,
...componentClasses
]
};
function useGlobal({ emit }) {
function handleClick(event) {
emit(UI_GLOBAL.EVENTS.CLICK, event);
}
return {
handleClick
};
}
export default UI_GLOBAL;
export { useGlobal };