File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ import viteLogo from "/vite.svg";
44import "./App.css" ;
55import {
66 VscodeBadge ,
7+ VscodeLabel ,
78 VscodeTabHeader ,
89 VscodeTabPanel ,
910 VscodeTabs ,
11+ VscodeTextfield ,
1012} from "@vscode-elements/react-elements" ;
1113
1214function App ( ) {
@@ -15,6 +17,9 @@ function App() {
1517 return (
1618 < >
1719 < div >
20+ < VscodeLabel htmlFor = "test" > Test</ VscodeLabel >
21+ < VscodeTextfield id = "test" > </ VscodeTextfield >
22+
1823 < VscodeBadge variant = "counter" > 10</ VscodeBadge >
1924 < VscodeTabs
2025 onVscTabsSelect = { ( e ) => {
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import { createComponent } from "@lit/react" ;
3+ import { VscodeLabel as WC } from "@vscode-elements/elements" ;
4+
5+ const VscodeLabel = createComponent ( {
6+ tagName : "vscode-label" ,
7+ elementClass : WC ,
8+ react : React ,
9+ displayName : "VscodeLabel" ,
10+ } ) ;
11+
12+ export default VscodeLabel ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import VscodeFormContainer from "./components/VscodeFormContainer";
1010import VscodeFormGroup from "./components/VscodeFormGroup" ;
1111import VscodeFormHelper from "./components/VscodeFormHelper" ;
1212import VscodeIcon from "./components/VscodeIcon" ;
13+ import VscodeLabel from "./components/VscodeLabel" ;
1314import VscodeMultiSelect from "./components/VscodeMultiSelect" ;
1415import VscodeOption from "./components/VscodeOption" ;
1516import VscodeProgressRing from "./components/VscodeProgressRing" ;
@@ -44,6 +45,7 @@ export {
4445 VscodeFormGroup ,
4546 VscodeFormHelper ,
4647 VscodeIcon ,
48+ VscodeLabel ,
4749 VscodeMultiSelect ,
4850 VscodeOption ,
4951 VscodeProgressRing ,
You can’t perform that action at this time.
0 commit comments