MagicIcon

The MagicIcon represents an icon element that matches the settings of the magic style.

Properties

  • style (in IconStyle): Used to set color and height of the icon.
  • icon (in image): The image source of the icon.

Example

import { MagicIcon } from "@vivi/magic.slint";

export component Example inherits Window {
    width: 200px;
    height: 100px;

    MagicIcon {
        icon: @image-url("my-icon.svg");
    }
}