@ishitatsuyuki/oruga-next
Version:
UI components for Vue.js and CSS framework agnostic
13 lines (10 loc) • 319 B
text/typescript
// oruga object for programmatic components
const oruga = {};
// add components to the oruga object
function addProgrammatic(property: string, component: any) {
oruga[property] = component;
}
// composable for internal and external usage
export function useProgrammatic() {
return {oruga, addProgrammatic};
}