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
|
|
|
});
|
|
|
|
}
|