import React from 'react'; import { Meta, Story } from '@storybook/react'; import I18nWrapper from '../../I18nWrapper'; import Blob, { Props } from './Blob'; import './Blob.css'; const meta: Meta = { title: 'Blob', component: Blob, argTypes: { avatar: { control: { type: 'text', }, }, speaking: { control: { type: 'boolean', }, }, }, parameters: { controls: { expanded: true }, }, }; export default meta; const Template: Story = args => (
); // By passing using the Args format for exported stories, you can control the props for a component for reuse in a test // https://storybook.js.org/docs/react/workflows/unit-testing export const Default = Template.bind({}); Default.args = { speaking: false, }; export const WithAvatar = Template.bind({}); WithAvatar.args = { avatar: 'https://avatars.githubusercontent.com/u/21101435?v=4', speaking: false, }; export const Speaking = Template.bind({}); Speaking.args = { speaking: true, };