Skip to main content

selectable_text

Function selectable_text 

Source
pub fn selectable_text(text: impl Into<Arc<str>>) -> UiBuilder<TextBox>
Expand description

Returns a patchable selectable text builder (drag-to-select + edit.copy).

Prefer this for read-only values (paths/IDs/snippets) and documentation-like content. Avoid using it inside pressable/clickable rows: it intentionally captures left-drag selection gestures and stops propagation (use a dedicated copy button instead).