PureIcon

The PureIcon represents an icon element that matches the settings of the pure 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 { PureIcon } from "@coop/pure.slint";

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

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