name: rexui-text-and-input description: "Use this skill when building RexUI text, rich text, BBCodeText, tagText, dynamicText, textBox, simpleTextBox, textArea, textAreaInput, inputText, canvasInput, hiddenEdit, textEdit, textTyping, textPage, textPlayer, nameInputDialog, fileChooser, fileDropZone, fileSelectorButton, imageInputLabel, colorInput, colorPicker, or colorComponents. Triggers on: RexUI text, RexUI input, BBCodeText, tagText, textBox, textAreaInput, inputText, canvasInput, textTyping, textPlayer, colorPicker, fileChooser."
RexUI Text And Input
Use this skill for RexUI text rendering, rich text, dialogue text boxes, editable fields, text typing/page behavior, file selection, and color input.
Use This First
Choose the component:
| Need | Use |
|---|---|
| Rich text with inline BBCode tags | BBCodeText |
| Rich text with tag parser behavior | tagText |
| Low-level dynamic text layout | dynamicText |
| Dialogue box with paging and typing | textBox or simpleTextBox |
| Scrollable read-only text | textArea |
| Scrollable editable multiline text | textAreaInput |
| DOM-backed text input | inputText |
| Canvas-rendered editable input | canvasInput |
| Edit an existing text object | textEdit or hiddenEdit |
| Standalone typing behavior | textTyping |
| Standalone page/line splitting behavior | textPage |
| Rich scripted text playback | textPlayer |
| First/last name modal prompt | nameInputDialog |
| Browser file selection | fileChooser, openFileChooser, fileSelectorButton |
| Drag/drop file target | fileDropZone |
| Image file picker with preview | imageInputLabel |
| Editable color field or picker | colorInput, colorInputLite, colorPicker, colorComponents |
For modal flow around nameInputDialog, use rexui-dialogs-and-popups. For scroll-only list/panel behavior, use rexui-scroll-lists-and-tables.
Required Setup
This skill assumes RexUI is available as this.rexUI. If not, use rexui-setup-and-factory.
Enable Phaser DOM support when using inputText, fileChooser, fileSelectorButton, fileDropZone, or other DOM-backed file/input helpers:
const config = {
dom: { createContainer: true }
};
References
Read these only when needed:
references/text-catalog.md: component chooser, factory signatures, source files, and gotchas.references/rich-text-recipes.md: rich text, text box typing, text area scrolling, and text behavior recipes.references/input-recipes.md:inputText,canvasInput,textAreaInput,textEdit, and form patterns.references/file-and-color-recipes.md: file selector, image input, color input, color picker, and color events.
Core Rules
- Call
.layout()after creating or mutating RexUI layout components such astextBox,simpleTextBox,textArea,textAreaInput,nameInputDialog,colorInput,colorPicker, andcolorComponents. - Use
BBCodeTextwith a capital factory name:this.rexUI.add.BBCodeText(...). - Use
inputTextfor native DOM input behavior; ensuredom.createContainer: true. - Use
canvasInputwhen the input must render inside the game canvas and integrate with RexUI layout. canvasInputfactory accepts a config object in current source even thoughFactory.d.tsalso shows positional parameters.- Use
textAreaInputfor editable multiline content with scrolling; usetextAreafor read-only scrollable text. - Use
textBoxfor dialogue text withstart(),typeNextPage(),pageend, andcomplete. - Store passwords or hidden values in
canvasInput.rawTextwhen displaying masked text. - File chooser APIs depend on browser user interaction; trigger them from a click/tap flow.
- Use package imports only in full setup examples; local
templates/ui/...paths are source-map paths.
Source File Map
templates/ui/bbcodetext/BBCodeText.d.tstemplates/ui/tagtext/TagText.d.tstemplates/ui/dynamictext/DynamicText.d.tstemplates/ui/textbox/TextBox.d.tstemplates/ui/simpletextbox/SimpleTextBox.d.tstemplates/ui/textarea/TextArea.d.tstemplates/ui/textareainput/TextAreaInput.d.tstemplates/ui/inputtext/InputText.d.tstemplates/ui/canvasinput/CanvasInput.d.tstemplates/ui/hiddenedit/HiddenEdit.d.tstemplates/ui/textedit/TextEdit.d.tstemplates/ui/texttyping/TextTyping.d.tstemplates/ui/textpage/TextPage.d.tstemplates/ui/textplayer/TextPlayer.d.tstemplates/ui/nameinputdialog/NameInputDialog.d.tstemplates/ui/filechooser/FileChooser.d.tstemplates/ui/filedropzone/FileDropZone.d.tstemplates/ui/fileselectorbutton/FileSelectorButton.d.tstemplates/ui/imageinputlabel/ImageInputLabel.d.tstemplates/ui/colorinput/colorinput/ColorInput.d.tstemplates/ui/colorinput/colorinputbase/ColorInputBase.d.tstemplates/ui/colorinput/colorpicker/ColorPicker.d.tstemplates/ui/colorinput/colorcomponents/ColorComponents.d.ts
Related Skills
rexui-setup-and-factory: plugin setup and factory discovery.rexui-components-catalog: choose the correct component family.rexui-layout-sizers: form and dialogue layout.rexui-basic-widgets: labels and buttons around text inputs.rexui-dialogs-and-popups: modal prompts and dialog lifecycle.rexui-scroll-lists-and-tables: scrollable text areas and scroll controls.