Skip to content

refactor: use transient props for styled-components v6+#398

Open
tegaki-tegaki wants to merge 1 commit intoreact95-io:masterfrom
tegaki-tegaki:feature/upstream-pr
Open

refactor: use transient props for styled-components v6+#398
tegaki-tegaki wants to merge 1 commit intoreact95-io:masterfrom
tegaki-tegaki:feature/upstream-pr

Conversation

@tegaki-tegaki
Copy link
Copy Markdown

@tegaki-tegaki tegaki-tegaki commented Dec 14, 2025

This is a heavily LLM assisted refactoring (might be some things missing, might be a bit odd here and there)

closes #390

limehawk added a commit to limehawk/React95 that referenced this pull request Apr 16, 2026
Convert all styled-component prop names to $-prefixed transient props
to prevent DOM attribute leaking in styled-components v6. This is a
styled-components best practice that ensures custom props are consumed
by styled-components and never forwarded to the underlying DOM element.

Components updated: Anchor, AppBar, Avatar, Button, ColorInput,
Counter/Digit, DatePicker, Frame, GroupBox, Handle, Hourglass,
NumberInput, ProgressBar, ScrollView, Select, Separator, Slider,
Tabs, TextInput, Toolbar, Tooltip, TreeView, Window, WindowHeader.

Also adds forwardRef to Handle and Separator which were previously
bare styled-components without ref forwarding.

Closes upstream react95-io#398, closes upstream react95-io#390.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump styled-components to v6

1 participant