Skip to content

Replace dioxus-primitives in the docsite with plain RSX - #19

Open
nicoburns wants to merge 1 commit into
0.8from
devin/1795805253-vendor-primitives
Open

nicoburns wants to merge 1 commit into
0.8from
devin/1795805253-vendor-primitives

Conversation

@nicoburns

@nicoburns nicoburns commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Drops the docsite's dioxus-primitives git dependency on DioxusLabs/components, which created a repo cycle (primitives depends on dioxus-code). Instead of vendoring ~5k lines of primitives, the wrappers in docsite/src/components/ are now plain RSX:

  • Navbar / NavbarNav / NavbarItem: <nav>, <a>, and a Resources dropdown opened by CSS :hover / :focus-within.
  • ToggleGroup / ToggleItem: buttons with aria-pressed + data-state, driven by pressed / onclick props.
  • Select: a native <select> with option children (theme picker).
  • Separator: a div role="separator".
  • Tooltip: removed (no call sites).

Tradeoff (agreed with Nico): the widgets lose roving focus and the custom listbox keyboard handling/typeahead; the native <select> covers keyboard use for the picker. Net diff is -650 lines and the components repo is gone from Cargo.lock.


ComponentBot opened this PR for Nico
Implemented in session Vendor primitives into the dioxus-code docsite
Review with Devin · Open in Devin Desktop


@staging-devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@staging-devin-ai-integration
staging-devin-ai-integration Bot force-pushed the devin/1795805253-vendor-primitives branch from 1951b12 to 4090d34 Compare November 27, 2026 19:13
@staging-devin-ai-integration staging-devin-ai-integration Bot changed the title Vendor dioxus-primitives into the docsite Replace dioxus-primitives in the docsite with plain RSX Nov 27, 2026

This branch has not been deployed

No deployments
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.

1 participant