b7f52be4c9
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import AppWrapper from 'appWrapper';
|
|
|
|
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
const meta = {
|
|
title: 'Example/App',
|
|
component: AppWrapper,
|
|
parameters: {
|
|
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
|
|
layout: 'centered'
|
|
},
|
|
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
tags: ['autodocs'],
|
|
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
|
argTypes: {}
|
|
} satisfies Meta<typeof AppWrapper>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
export const Primary: Story = {
|
|
args: {
|
|
widgetConfig: {
|
|
chainlitServer: 'http://localhost:8000'
|
|
}
|
|
}
|
|
};
|
|
|
|
export const Secondary: Story = {
|
|
args: {
|
|
widgetConfig: {
|
|
chainlitServer: 'http://localhost:8000',
|
|
theme: 'dark',
|
|
button: {
|
|
imageUrl:
|
|
'https://steelbluemedia.com/wp-content/uploads/2019/06/new-google-favicon-512.png'
|
|
}
|
|
}
|
|
}
|
|
};
|