slint/ui-libraries/material/examples/gallery/ui/components/text_icon_button.slint
Olivier Goffart 4ce64c3478
material: Move the source code to ui-libraries/material/src
That way we can create an archive with just the `src` that doesn't
contains the docs and example that can be moved in that folder
2025-09-24 15:28:06 +02:00

24 lines
510 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import {
IconButton,
MaterialText
} from "../../../../src/material.slint";
export component TextIconButton {
in property <image> icon <=> button.icon;
in property <string> text <=> label.text;
VerticalLayout {
HorizontalLayout {
alignment: center;
button := IconButton {}
}
label := MaterialText {
horizontal_alignment: center;
}
}
}