input.stories.tsx (584B)
1 import { Meta, StoryObj } from '@storybook/react'; 2 import ChatInput from './input'; 3 import { withRouter } from 'storybook-addon-react-router-v6'; 4 5 const meta: Meta<typeof ChatInput> = { 6 title: 'Chat/Input', 7 component: ChatInput, 8 decorators: [withRouter], 9 argTypes: { 10 namespace: { 11 required: true, 12 name: "Namespace", 13 description: "The Namespace of the editor.", 14 }, 15 } 16 }; 17 18 export default meta; 19 type Story = StoryObj<typeof ChatInput>; 20 21 export const Default: Story = { 22 args: { 23 namespace: "Editor" 24 } 25 };