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() }
	}
}
