Skip to main content

Module recipe_text_input_style

Module recipe_text_input_style 

Source
Expand description

Default TextInputStyle impl driven by paint-recipe data.

RecipeTextInputStyle ships the IntUI chrome: a bordered rectangle around the editor area with a horizontal-padding inset, the border thickening and recolouring on focus, and validation tints (error / warning / corrected) overriding focus when set. The validation strip below the field is the widget’s responsibility — the trait recipe is just the bordered frame.

The recipe describes border / fill / corner radius only; the rest stays on the widget. Caret blinking, IME composition, placeholder layering, leading / trailing slots, clear button, the ValidationStrip below — all stay on the public TextInput widget.

Variants:

  • Outlined (default) — 1 dp border in the theme’s default border role; thickens to focus_ring_width on focus.
  • Filled — accent-subtle background, no border. Material 3 style.
  • Underline — transparent surface with a single bottom border. For now this is rendered as Outlined with the same border on all sides; a true bottom-only stroke arrives once BorderPosition / per-side stroke recipes land.
  • Bare — no chrome at all. Returns the editor verbatim. Used by parents that own the chrome themselves (search fields, combo box filter input).

Structs§

RecipeTextInputStyle
Default TextInputStyle shipped with Teksilo.
TextInputRecipe
Dimension recipe for RecipeTextInputStyle.

Constants§

TEXT_FIELD_BORDER_WIDTH
TEXT_FIELD_CARET_WIDTH
TEXT_FIELD_CORNER_RADIUS
TEXT_FIELD_CORRECTED_PULSE_DURATION_MS
TEXT_FIELD_ERROR_PULSE_DURATION_MS
TEXT_FIELD_HEIGHT
TEXT_FIELD_MASK_PLACEHOLDER_CHAR
TEXT_FIELD_PADDING_HORIZONTAL
TEXT_FIELD_PADDING_VERTICAL
TEXT_FIELD_VALIDATION_STRIP_GAP