verstak
Version:
Verstak - Front-End Library
14 lines (13 loc) • 396 B
JavaScript
import { setBasis } from "reactronic";
import { Block } from "verstak";
import { Theme } from "./Theme.js";
export function Icon(name, declaration) {
return (Block(setBasis(declaration, {
signalArgs: { name },
body() {
const theme = Theme.current.icon;
this.useStylingPreset(name);
this.useStylingPreset(theme.main);
},
})));
}