Files
owncast/web/components/ui/followers/SingleFollower/SingleFollower.stories.tsx
T
Gabe KangasandGitHub cc9286416c Update storybook to v9 (#4645)
* chore: Update storybook to v9

* Pin next-export-i18n + remove outdated mock library

* Replace old mocking library with MSW

* Resolve knip unused code warnings
2025-10-20 21:26:32 -07:00

34 lines
802 B
TypeScript

import { Meta } from '@storybook/nextjs';
import { SingleFollower } from './SingleFollower';
import SingleFollowerMock from '../../../../stories/assets/mocks/single-follower.png';
const meta = {
title: 'owncast/Components/Followers/Single Follower',
component: SingleFollower,
parameters: {
design: {
type: 'image',
url: SingleFollowerMock,
},
docs: {
description: {
component: `Represents a single follower.`,
},
},
},
} satisfies Meta<typeof SingleFollower>;
export default meta;
export const Example = {
args: {
follower: {
name: 'John Doe',
description: 'User',
username: '@account@domain.tld',
image: 'https://avatars0.githubusercontent.com/u/1234?s=460&v=4',
link: 'https://yahoo.com',
},
},
};