Skip to content
vivi
Docs
Ctrl+K

Menu

Docs
  • Getting Started
    • Introduction
    • Rust
    • TypeScript / JavaScript
    • Visual Studio Code
    • Helix
  • Magic
    • AppBar
    • CheckBox
    • CircularProgressSlider
    • ComboBox
    • FormElement
    • GroupBox
    • IconButton
    • Icons
    • Styling
    • StateLayer
    • FilledButton
    • TabBar
    • TextButton
    • TextArea
    • TextField
    • TimePickerPopup
    • OutlineButton
    • ProgressSlider
    • MagicButtonBase
    • MagicHorizontalBox
    • MagicIcon
    • MagicProgressSliderBase
    • MagicText
    • MagicListView
    • MagicVerticalBox
    • MagicWindow
    • ScrollView
    • Switch
    • ListView
  • Foundation
    • AppBarBase
    • Border
    • ButtonBase
    • CheckBoxBase
    • ComboBoxBase
    • FormElementBase
    • GroupBoxBase
    • HorizontalLayoutBase
    • IconBase
    • TabBarBase
    • TextBase
    • TextInputBaste
    • RangeBase
    • FocusTouchArea
    • ScrollViewBase
    • VerticalLayoutBase

© 2026 Copyright © vivi developers · MIT

vivi docs

  • Getting Started
    • Introduction
    • Rust
    • TypeScript / JavaScript
    • Visual Studio Code
    • Helix
  • Magic
    • AppBar
    • CheckBox
    • CircularProgressSlider
    • ComboBox
    • FormElement
    • GroupBox
    • IconButton
    • Icons
    • Styling
    • StateLayer
    • FilledButton
    • TabBar
    • TextButton
    • TextArea
    • TextField
    • TimePickerPopup
    • OutlineButton
    • ProgressSlider
    • MagicButtonBase
    • MagicHorizontalBox
    • MagicIcon
    • MagicProgressSliderBase
    • MagicText
    • MagicListView
    • MagicVerticalBox
    • MagicWindow
    • ScrollView
    • Switch
    • ListView
  • Foundation
    • AppBarBase
    • Border
    • ButtonBase
    • CheckBoxBase
    • ComboBoxBase
    • FormElementBase
    • GroupBoxBase
    • HorizontalLayoutBase
    • IconBase
    • TabBarBase
    • TextBase
    • TextInputBaste
    • RangeBase
    • FocusTouchArea
    • ScrollViewBase
    • VerticalLayoutBase

© 2026 Copyright © vivi developers · MIT

  1. vivi docs
  2. Magic
  3. MagicIcon

MagicIcon

On this page
  • MagicIcon ›
    • Properties
    • Example

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");
    }
}
← Previous MagicHorizontalBox Next → MagicProgressSliderBase

On this page

  • MagicIcon ›
    • Properties
    • Example