Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a UI component toolkit for WebViews #94741

Closed
eamodio opened this issue Apr 9, 2020 · 9 comments
Closed

Provide a UI component toolkit for WebViews #94741

eamodio opened this issue Apr 9, 2020 · 9 comments
Assignees
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality ux User experience issues verified Verification succeeded webview Webview issues

Comments

@eamodio
Copy link
Contributor

eamodio commented Apr 9, 2020

Refs: #93604

As WebViews get used more and more to provide functionality (especially now with Custom Editors), it would be great to provide a reusable set of components that fit VS Code's UI/UX style and behavior.

@miguelsolorio miguelsolorio added webview Webview issues extensions Issues concerning extensions ux User experience issues labels Apr 9, 2020
@miguelsolorio miguelsolorio added this to the Backlog milestone Apr 9, 2020
@miguelsolorio miguelsolorio added the feature-request Request for new features or functionality label Apr 9, 2020
@miguelsolorio
Copy link
Contributor

@eamodio any specific components that came up?

@eamodio
Copy link
Contributor Author

eamodio commented Apr 9, 2020

Toolbars, buttons, dropdowns, menus

@eamodio
Copy link
Contributor Author

eamodio commented Apr 9, 2020

@RandomFractals Any more specifics you want to add here?

@idoprz
Copy link

idoprz commented Apr 11, 2020

Hi,
We created amazing reusable UI component for creating forms in VSCode, all based on inquirer.js framework, we call it inquirer-gui.
There is an example on how to use it in VSCode and get the VSCode themes & look and feel.

@RandomFractals
Copy link

RandomFractals commented Apr 11, 2020

@misolori to start with, I think it would be great to have a reusable custom toolbar api and web components markup provided by vscode to extend current use of custom webview editors and create additional toggles and controls for the preview extensions and viewers.

Most use top or bottom toolbar or both and with new side bar UI you added recently, I think it would be possible to build simple custom view extensions or REPL's with rich UX/XD tied to extension commands, yet have uniform look and feel and theming without duplicating that effort on custom extension setup end.

@mjcrouch
Copy link
Contributor

mjcrouch commented Apr 12, 2020

I'm looking to create a 'changelist search' for the perforce extension, which would be very similar to the GitLens "Search commits" view. @eamodio did a good job with what's available, but I can imagine that interface would be more intuitive with a 'rich' input, which could support displaying a form with multiple inputs

I'd ideally like that to include checkboxes, e.g. for toggle-based filters like "show / hide submitted changelists", "show only changelists with shelved files" etc

edit: I totally failed to read the "webview" part of the title to realise that this was specifically about webviews and was thinking from more of a generic sense rather than about webviews when I wrote the above, though it could be done that way I suppose

@mati-o
Copy link

mati-o commented Dec 22, 2020

Hi,

definitely I'd love to use the components provided by VS Code in my extension's WebView, providing my users with one UX. I do my best to use CSS variables to keep up the colors tidy, but the elements and controls themselves needs a lot of care and attention to make them look the same.

In particular, I'm looking for all the components, as I display some clever custom editors that walk my users through a series of steps involving comboboxes, drop downs, text editing (including multi-line), and more... It resembles the rich editing capabilities of VS Code's own Settings view.

I'll be glad to have the CSS classes available too, or even control's functionality too.

@daviddossett
Copy link
Contributor

Excited to finally close this one! We've just released the public preview of the Webview UI Toolkit for Visual Studio Code.

We would love to hear any ideas, requests, or issues you have—let us know over on the toolkit repo.

webview-ui-toolkit-social

cc @hawkticehurst @misolori

@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2021
@DonJayamanne
Copy link
Contributor

Marking this as verified, I've tried the webview toolkit.

@DonJayamanne DonJayamanne added the verified Verification succeeded label Nov 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality ux User experience issues verified Verification succeeded webview Webview issues
Projects
None yet
Development

No branches or pull requests

8 participants