Skip to content

feat: add destyler component switcher - #5

Closed
elonehoo wants to merge 1 commit into
nextfrom
feat/component-switcher
Closed

elonehoo wants to merge 1 commit into
nextfrom
feat/component-switcher

Conversation

@elonehoo

@elonehoo elonehoo commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a header component dropdown (same pattern as framework select) so you can switch Destyler primitives without editing imports by hand.

  • Default remains checkbox (existing Vue/React/Solid/Svelte demos).
  • Other components get a generated machine + connect example for the current framework.
  • Switching framework keeps the selected component.
  • URL hash stores optional component; old shares still open as checkbox.
  • Runtime still only preloads @destyler/* packages that the files import. Volar type deps include the full component list.

Test plan

  • Default load: checkbox Vue demo unchanged.
  • Switch to Dialog / Slider / Toast; preview reloads; editor App import matches the package.
  • Switch Vue → React while Dialog is selected; files/framework adapter follow.
  • Reset returns to Vue + checkbox.
  • Share URL restores the selected component.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

❌ PR Preview failed

Zeabur preview service deployment failed.

See GitHub Actions for details.

@elonehoo

elonehoo commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

Wrong direction — user wanted destyler vs destyler/ui layer switch, not a primitive component picker.

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