mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #78] [CLOSED] feat: scroll box component #1054
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1054
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/78
Author: @Leka74
Created: 8/25/2025
Status: ❌ Closed
Base:
main← Head:feat/scroll-box-implementation📝 Commits (2)
a270b00feat: scrollbox componentbffed2bremove comment📊 Changes
17 files changed (+551 additions, -19 deletions)
View changed files
📝
packages/core/src/Renderable.ts(+18 -1)📝
packages/core/src/buffer.ts(+2 -0)📝
packages/core/src/lib/selection.ts(+4 -5)📝
packages/core/src/renderables/Box.ts(+18 -0)➕
packages/core/src/renderables/ScrollBox.ts(+245 -0)📝
packages/core/src/renderables/Text.ts(+12 -5)📝
packages/core/src/renderables/index.ts(+1 -0)📝
packages/core/src/renderer.ts(+45 -0)📝
packages/core/src/types.ts(+4 -0)📝
packages/core/src/zig.ts(+29 -1)📝
packages/core/src/zig/buffer.zig(+16 -4)📝
packages/core/src/zig/lib.zig(+8 -0)➕
packages/react/examples/scroll-box.tsx(+125 -0)📝
packages/react/jsx-namespace.d.ts(+2 -0)📝
packages/react/src/components/index.ts(+2 -0)📝
packages/react/src/types/components.ts(+11 -3)📝
packages/solid/src/elements/index.ts(+9 -0)📄 Description
I wanted to have some sort of a box component which the content can be scrollable. This maybe could've also be done as part of the
boxcomponent as well.Works similarly to the box component, with the addition of
showScrollIndicatorandscrollStepproperties. You'll have to add aheightto the component to get the main benefit of this. Maybe that property has to be required if this ends up being a separate component and not just an update ofboxfyi: part of this has been vibe coded.
https://github.com/user-attachments/assets/3cfb9e99-69ca-43a4-bacf-844390b40ed1
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.