zui docs v0.0.5
GitHub ↗
Buttons and input Native Qt

Text Area

Text Area is a native Zui component in the buttons and input catalog, with 15 component-specific properties.

Usage

Ruby example

Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.

Ruby
text_area "Release notes", placeholder: "What changed?", width: 520, height: 180, maximum_length: 2_000
API

Component properties

15 component-specific values, plus shared item and layout properties.

textText configuration for Text Area.property
placeholderPlaceholder configuration for Text Area.property
widthWidth configuration for Text Area.property
heightHeight configuration for Text Area.property
wrapWrap configuration for Text Area.property
read_onlyRead only configuration for Text Area.property
maximum_lengthMaximum length configuration for Text Area.property
foregroundForeground configuration for Text Area.property
backgroundBackground configuration for Text Area.property
accentAccent configuration for Text Area.property
selection_tintSelection tint configuration for Text Area.property
font_familyFont family configuration for Text Area.property
font_sizeFont size configuration for Text Area.property
paddingPadding configuration for Text Area.property
visibleVisible configuration for Text Area.property
Show 14 shared item properties
enabledopacityscalerotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

inputNative event payload
changeNative event payload
focusNative event payload
blurNative event payload
selectionNative event payload