mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-19 11:57:07 +00:00
27 lines
574 B
Svelte
27 lines
574 B
Svelte
<script module>
|
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
import { ChatSettingsDialog } from '$lib/components/app';
|
|
import { fn } from 'storybook/test';
|
|
|
|
const { Story } = defineMeta({
|
|
title: 'Components/ChatSettingsDialog',
|
|
component: ChatSettingsDialog,
|
|
parameters: {
|
|
layout: 'fullscreen'
|
|
},
|
|
argTypes: {
|
|
open: {
|
|
control: 'boolean',
|
|
description: 'Whether the dialog is open'
|
|
}
|
|
},
|
|
args: {
|
|
onOpenChange: fn()
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<Story name="Open" args={{ open: true }} />
|
|
|
|
<Story name="Closed" args={{ open: false }} />
|