Feature Spec UI: TextInput - adobe-photoshop/spaces-design GitHub Wiki

TextInput

TextInput Behaviors

Double Click to Edit - TextInputs may be set to require a double click to edit. This is the case for the Layer names and the Library Asset names. In these inputs, while the input is not in edit mode, horizontal scrolling should be disabled for

Continuous - The TextInput will continuously update its value as new characters are typed. This is differs from standard behavior where the new value must be committed (via the enter key or blurring)

Never Select All - On focus, the input should not select the current value (used in the Search Bar)

Disabled - Disabled text inputs should not be editable or selectable

TextInput Attributes

value - (Possibly) user editable text

title - Text that should display as a tooltip on mouse hover

placeholder text - the text that should appear in the empty text input

size - Size CSS Class