12 lines
333 B
TypeScript
12 lines
333 B
TypeScript
import { LabelProps } from "types/widgets/label";
|
|
|
|
export const MaterialIcon = (icon: string, size: string = "24px", props?: LabelProps) =>
|
|
Widget.Label({
|
|
label: icon,
|
|
class_name: "icon material_icon",
|
|
css: `font-size: ${size};`,
|
|
hpack: "center",
|
|
vpack: "center",
|
|
...props
|
|
});
|