mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-10-27 08:21:30 +00:00
35 lines
635 B
TypeScript
35 lines
635 B
TypeScript
import type { Preview } from '@storybook/sveltekit';
|
|
import '../src/app.css';
|
|
import ModeWatcherDecorator from './ModeWatcherDecorator.svelte';
|
|
import TooltipProviderDecorator from './TooltipProviderDecorator.svelte';
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/i
|
|
}
|
|
},
|
|
backgrounds: {
|
|
disable: true
|
|
}
|
|
},
|
|
decorators: [
|
|
(story) => ({
|
|
Component: ModeWatcherDecorator,
|
|
props: {
|
|
children: story
|
|
}
|
|
}),
|
|
(story) => ({
|
|
Component: TooltipProviderDecorator,
|
|
props: {
|
|
children: story
|
|
}
|
|
})
|
|
]
|
|
};
|
|
|
|
export default preview;
|