File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
docs/tutorialkit.dev/src/content/docs/reference Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ description: Use TutorialKit's React components for fun and profit.
44---
55import PackageManagerTabs from ' @components/Tabs/PackageManagerTabs.astro'
66import { Code } from ' @astrojs/starlight/components' ;
7+ import { Tabs , TabItem } from ' @astrojs/starlight/components' ;
78import themeCSS from ' @tutorialkit/astro/default-theme.css?raw' ;
89
910import Example from ' @components/react-examples/Example.astro' ;
@@ -17,6 +18,7 @@ import sourceExampleSimpleEditor from '@components/react-examples/ExampleSimpleE
1718import sourceExampleFileTree from ' @components/react-examples/ExampleFileTree?raw' ;
1819import sourceExampleCodeMirrorEditor from ' @components/react-examples/ExampleCodeMirrorEditor?raw' ;
1920import sourceExampleTerminal from ' @components/react-examples/ExampleTerminal?raw' ;
21+ import sourceUseWebcontainer from " @components/react-examples/hooks/useWebcontainer?raw" ;
2022
2123You can reuse TutorialKit's React components in your own applications. They are designed to work well with the [ WebContainer API] [ webcontainers ] .
2224
@@ -74,6 +76,17 @@ See a full example on [StackBlitz][stackblitz-example].
7476
7577## Components
7678
79+ These examples have references to the following files:
80+
81+ <Tabs syncKey = " referenced-files" >
82+ <TabItem label = " hooks/useTheme.ts" >
83+ <Code code = { " export function useTheme() {\n return 'light';\n }" } lang = " ts" class = " limit-code-height" />
84+ </TabItem >
85+
86+ <TabItem label = " hooks/useWebcontainer.ts" >
87+ <Code code = { sourceUseWebcontainer } lang = " ts" class = " limit-code-height" />
88+ </TabItem >
89+ </Tabs >
7790
7891### ` FileTree `
7992
You can’t perform that action at this time.
0 commit comments