Skip to content

Provide a UI component toolkit for WebViews #94741

Closed

Description

@eamodio

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.

Activity

  1. added
    webview
    extensions
    ux
    on Apr 9, 2020
  2. added
    feature-request
    on Apr 9, 2020
  3. miguelsolorio commented on Apr 9, 2020

    @miguelsolorio
    Contributor

    Eric Amodio (@eamodio) any specific components that came up?

  4. eamodio commented on Apr 9, 2020

    @eamodio
    ContributorAuthor

    Toolbars, buttons, dropdowns, menus

  5. eamodio commented on Apr 9, 2020

    @eamodio
    ContributorAuthor

    Taras Novak (@RandomFractals) Any more specifics you want to add here?

  6. idoprz commented on Apr 11, 2020

    @idoprz

    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.

  7. RandomFractals commented on Apr 11, 2020

    @RandomFractals

    @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.

  8. mjcrouch commented on Apr 12, 2020

    @mjcrouch
    Contributor

    I'm looking to create a 'changelist search' for the perforce extension, which would be very similar to the GitLens "Search commits" view. Eric Amodio (@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

  9. mati-o commented on Dec 22, 2020

    @mati-o

    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.

  10. daviddossett commented on Oct 7, 2021

    @daviddossett
    Collaborator

    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 Hawk Ticehurst (@hawkticehurst) @misolori

  11. locked and limited conversation to collaborators on Nov 21, 2021
  12. DonJayamanne commented on Nov 30, 2021

    @DonJayamanne
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

extensionsfeature-requestuxverifiedwebview

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions