GitXplorerGitXplorer
m

vscode-webview-ui-toolkit-samples

public
245 stars
58 forks
1 issues

Commits

List of commits on branch main.
Verified
b8afb1afecfa853028231a8a3ff97c7a02c5a595

Update README.md

hhawkticehurst committed 6 months ago
Verified
5baaf6588fd73a45a1994266eed6c615d7c92faf

Update component gallery examples to fix radio bug (#178)

hhawkticehurst committed a year ago
Verified
6131aa6b49a49434003529e7b0fb7bff703dd02d

Add editable data grid sample (#154)

hhawkticehurst committed 2 years ago
Verified
b3ebbd89add94aa75b353d732e8912d3b82d5c21

Minor updates (#147)

hhawkticehurst committed 2 years ago
Verified
edaead8974b68ff3a309e2b51c4aa039422f8d8d

Add `component-gallery-react` sample (#146)

hhawkticehurst committed 2 years ago
Verified
dc617167cd0d227585d87364465f8e2485d9a155

Update project README (#145)

hhawkticehurst committed 2 years ago

README

The README file for this repository.

Webview UI Toolkit Sample Extensions

[!WARNING] The Webview UI Toolkit for VS Code will be deprecated on January 1, 2025. See the deprecation announcement for more details.

This repository contains all the sample extensions for the Webview UI Toolkit for Visual Studio Code.

Each sample is a self-contained extension, and demonstrates some aspect of the toolkit and/or the Visual Studio Code API in relation to the toolkit. You can read, play with, or adapt these samples to create your own extensions.

Prerequisites

You need to have Node and NPM installed on your system to run the samples. We recommend you use the Node version used for Visual Studio Code development itself, which is documented here.

Usage

Follow the instructions in the README file of the desired sample extension.

Default samples

A set of sample extensions using vanilla HTML, CSS, and JavaScript/TypeScript to render the webview UI and demonstrate various VS Code APIs.

Don't see a demonstration for your desired use case, VS Code API, etc.? Open an issue and request it.

Sample extension Description
component-gallery Demonstrates every component in the Webview UI Toolkit.
editable-data-grid Demonstrates a workaround solution to create an editable data grid.
hello-world A basic hello-world starter extension.
hello-world-webpack A basic hello-world starter extension (built using Webpack instead of esbuild).
notepad A simple notetaking extension that leverages the VS Code TreeView API.
weather-webview Demonstrates the toolkit being used within a webview view – i.e., Visual Studio Code sidebar.

Framework samples

A set of sample extensions that demonstrate how to use various web frameworks to render the webview UI.

Sample extension Description
component-gallery-react Demonstrates every React component in the Webview UI Toolkit.
hello-world-angular A basic hello-world starter extension using Angular.
hello-world-react-cra A basic hello-world starter extension using React + Create React App.
hello-world-react-vite A basic hello-world starter extension using React + Vite.
hello-world-solidjs A basic hello-world starter extension using SolidJS.
hello-world-svelte A basic hello-world starter extension using Svelte.
hello-world-vue A basic hello-world starter extension using Vue.

Contributing

Read the contributing documentation.

Legal notices

Microsoft and any contributors grant you a license to any code in the repository under the MIT License, see the LICENSE file.

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Privacy information can be found here.

Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.