gitscope
← marzneshin / v0.3.2 / dashboard/src/features/github-repo/github-repo.stories.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/features/github-repo/github-repo.stories.tsx · TypeScript
Blame Raw
 1import { GithubRepo } from './index'
 2import type { Meta, StoryObj } from "@storybook/react";
 3
 4const meta: Meta<typeof GithubRepo> = {
 5    title: "Features/Github Repo Stats",
 6    component: GithubRepo,
 7    tags: ["autodocs"]
 8};
 9
10export default meta;
11
12type Story = StoryObj<typeof GithubRepo>;
13
14/**
15 * Github repo present repo fullname, description, and repo stars.
16 * */
17export const GithubRepoStats: Story = {
18    args: {}
19}
20
21
22/**
23 * Mini variant of Github repo present repo only the github logo and stars.
24 * */
25export const GithubRepoStatsMini: Story = {
26    args: {
27        variant: "mini"
28    }
29}
30