Repository navigation
feat(rune-kit): add TextArea::plain, trailing, and scroll_bar / scroll_bar_styled - #1967
Merged
Merged
Conversation
Hona
force-pushed
the
feat/286-textarea-plain-trailing-scrollbar
branch
from
November 24, 2026 15:44
fe2e227 to
459fe08
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #286
Fixes #908
Fixes #1638
Adds three opt-in chrome and layout builders to
rune_kit::TextArea, leaving defaultTextArealayout and visuals unchanged:TextArea::plain(self) -> Self: omits box chrome (fill, elevation, hover tint, border, focus outline) so a custom container such as a chat composer can draw its own box, while keeping 8 pt inner padding, press-anywhere focus, invalid red text even whenKit::invalid_textis false,Kit::disabled_dim, and the 2 pt forced-colors focus outline (Kit::forced). MirrorsTextInput::plain(crates/rune-kit/src/controls/text_input/mod.rs).TextArea::trailing(self, e: El) -> Self: switches the outerrole("textbox")container to arow()with an 8 pt gap, gives the editable viewport.grow(1.0).shrink().min_w(0.0)so text wraps clear of the accessory and scrolls insideauto_grow/max_height, and anchorsrow().key("trailing").self_end().child(e)at the bottom-end so the accessory remains independently focusable and clickable. MirrorsTextInput::trailing/TextField::trailingand CSS flex input-group layout.TextArea::scroll_bar(self, on: bool) -> SelfandTextArea::scroll_bar_styled(self, style: ScrollBarStyle) -> Self: wraps the internal"scroll"viewport created byauto_growormax_heightwithScrollBar::scroll_bar_styled(no-op when neither is set; off by default). MirrorsTree::scroll_bar/Tree::scroll_bar_styled(crates/rune-kit/src/tree/view.rs) andScrollBar.crates/rune-kit/src/controls/text_input.rsintocontrols/text_input/{mod,area,field}.rsto keep every file under the 800-line cap.Where to see it
examples/kit-galleryscenerune-textarea--composer(borderless plain composer, trailing Commit button beside an auto-growing scroll viewport, andmax_heightwith a customScrollBarStyle).Not checked