Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Files

Latest commit

Oct 11, 2023
5baaf65 · Oct 11, 2023

History

History

component-gallery-react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 11, 2023
May 11, 2023
May 11, 2023
Oct 11, 2023
May 11, 2023
May 11, 2023
May 11, 2023
May 11, 2023
May 11, 2023
May 11, 2023
May 11, 2023
May 11, 2023

Component Gallery (React)

This sample extension demonstrates every React component in the Webview UI Toolkit for Visual Studio Code.

A screenshot of the sample extension.

Run The Sample

# Copy sample extension locally
npx degit microsoft/vscode-webview-ui-toolkit-samples/frameworks/component-gallery-react component-gallery-react

# Navigate into sample directory
cd component-gallery-react

# Install dependencies for both the extension and webview UI source code
npm run install:all

# Build webview UI source code
npm run build:webview

# Open sample in VS Code
code .

Once the sample is open inside VS Code you can run the extension by doing the following:

  1. Press F5 to open a new Extension Development Host window
  2. Inside the host window, open the command palette (Ctrl+Shift+P or Cmd+Shift+P on Mac) and type Component Gallery (React): Show