primevue-mirror/components/lib/themes/actions/updatePreset.js

10 lines
230 B
JavaScript
Raw Normal View History

import Theme, { SharedUtils } from 'primevue/themes';
2024-05-06 15:50:06 +00:00
export default (...presets) => {
const newPreset = SharedUtils.object.mergeKeys(Theme.getPreset(), ...presets);
Theme.setPreset(newPreset);
return newPreset;
};