SingleFollower.stories.tsx 935 B

123456789101112131415161718192021222324252627282930313233
  1. import React from 'react';
  2. import { ComponentStory, ComponentMeta } from '@storybook/react';
  3. import { SingleFollower } from './SingleFollower';
  4. import SingleFollowerMock from '../../../../stories/assets/mocks/single-follower.png';
  5. export default {
  6. title: 'owncast/Components/Followers/Single Follower',
  7. component: SingleFollower,
  8. parameters: {
  9. design: {
  10. type: 'image',
  11. url: SingleFollowerMock,
  12. },
  13. docs: {
  14. description: {
  15. component: `Represents a single follower.`,
  16. },
  17. },
  18. },
  19. } as ComponentMeta<typeof SingleFollower>;
  20. const Template: ComponentStory<typeof SingleFollower> = args => <SingleFollower {...args} />;
  21. export const Example = Template.bind({});
  22. Example.args = {
  23. follower: {
  24. name: 'John Doe',
  25. description: 'User',
  26. username: '@account@domain.tld',
  27. image: 'https://avatars0.githubusercontent.com/u/1234?s=460&v=4',
  28. link: 'https://yahoo.com',
  29. },
  30. };