mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-01 17:03:19 +00:00
13 lines
387 B
Text
13 lines
387 B
Text
import { VLabeledComponent } from "LabeledComponent.slint";
|
|
import { Palette } from "Palette.slint";
|
|
|
|
export component VTextInput inherits VLabeledComponent {
|
|
in-out property text <=> textInputComponent.text;
|
|
in-out property wrap <=> textInputComponent.wrap;
|
|
callback accepted();
|
|
|
|
textInputComponent := TextInput {
|
|
color: Palette.foreground;
|
|
accepted => { root.accepted() }
|
|
}
|
|
}
|