mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-20 23:32:09 +00:00

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
24 lines
510 B
Text
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;
|
|
}
|
|
}
|
|
}
|