UNPKG

balm-ui

Version:

A modular and customizable UI library based on Material Design and Vue 3

15 lines (11 loc) 333 B
import configure from './configure'; const multiConfigure = (Components, options) => { for (const key of Object.keys(options)) { if (/^Ui[A-Z]{1}[A-Za-z]+$/.test(key)) { const Component = Components[key]; const props = options[key]; configure(Component, props); } } }; export default multiConfigure;