Stylish Outlined Text Field
An outlined text field with Stylish styling, designed for form input with built-in label, placeholder, and supporting text support. Wraps Material's OutlinedTextField with Stylish theme integration.
The outlined variant displays a transparent container with a border outline, making it suitable for forms where you want a lighter visual weight compared to filled text fields. The border animates and changes color on focus, error, and disabled states.
When minLines is 1 and maxLines is 1 (the default), the field operates in single-line mode. Setting minLines greater than 1 switches to a multiline field whose maxLines defaults to Int.MAX_VALUE. When singleLine is true, both minLines and maxLines are forced to 1 (matching Material's single-line contract).
Error display: when isError is true, the field renders its error indicator color on the border. The supportingText slot can be used to display error messages or helper text below the field.
Parameters
Current text value (controlled state).
Called with the updated text on every edit.
Modifier applied to the enclosing Column root.
Optional label displayed above the field. Animates to float above the container when the field is focused or has content.
Optional hint text shown when the field is empty and not focused.
Optional icon slot at the start of the field.
Optional icon slot at the end of the field.
Optional slot rendered below the field. Use this for helper text, error messages, or character counters.
When true, the field renders its error indicator color on the border. Defaults to false.
When false, the field rejects input and renders in Material's disabled color scheme. Defaults to true.
When true, the field displays its text without allowing edits. Defaults to false.
Maximum lines before scrolling. Defaults to 1 when singleLine is true, otherwise Int.MAX_VALUE. Ignored when singleLine is true.
Minimum visible lines. Defaults to 1. Ignored when singleLine is true.
Software keyboard options (keyboard type, capitalization, IME action) for the field.
Software keyboard action handlers for the field.
Visual transformation applied to the input text (e.g. password masking). Defaults to VisualTransformation.None.
Shape of the field container and border. Defaults to RoundedCornerShape with StylishTheme.shapes.medium.
Color scheme for the field. Defaults to StylishOutlinedTextFieldDefaults.colors.
The MutableInteractionSource for the field, used to observe focus/press/hover interactions. When null, an internal one is remembered.