1
0
Fork 0
VaultUI/src/elements/MarginInline.js

15 lines
351 B
JavaScript
Raw Normal View History

2021-04-15 13:01:58 +01:00
import { makeElement } from "../htmlUtils.js";
2021-05-07 12:07:51 +01:00
export function MarginInline(children, marginOptions = {}, inlineOptions = {}) {
2021-04-15 13:01:58 +01:00
return makeElement({
tag: "div",
class: "uk-margin",
children: makeElement({
tag: "div",
class: "uk-inline",
2021-05-07 12:07:51 +01:00
children: children,
...inlineOptions,
}),
...marginOptions,
2021-04-15 13:01:58 +01:00
});
}