File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
tools/server/webui/.storybook Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ import * as Tooltip from ' ../src/lib/components/ui/tooltip' ;
3+
4+ interface Props {
5+ children: any ;
6+ }
7+
8+ let { children }: Props = $props ();
9+ </script >
10+
11+ <Tooltip .Provider >
12+ {@render children ()}
13+ </Tooltip .Provider >
Original file line number Diff line number Diff line change 11import type { Preview } from '@storybook/sveltekit' ;
22import '../src/app.css' ;
33import ModeWatcherDecorator from './ModeWatcherDecorator.svelte' ;
4+ import TooltipProviderDecorator from './TooltipProviderDecorator.svelte' ;
45
56const preview : Preview = {
67 parameters : {
@@ -20,6 +21,12 @@ const preview: Preview = {
2021 props : {
2122 children : story
2223 }
24+ } ) ,
25+ ( story ) => ( {
26+ Component : TooltipProviderDecorator ,
27+ props : {
28+ children : story
29+ }
2330 } )
2431 ]
2532} ;
You can’t perform that action at this time.
0 commit comments