gitscope
← marzneshin / v0.5.4 / 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        full_name: "marzneshin/marzneshin",
20        description: "Scalable and Comprehensive Backend Proxy Management",
21        stargazers_count: 1000,
22    }
23}
24
25/**
26 * Mini variant of Github repo present repo only the github logo and stars.
27 * */
28export const GithubRepoStatsMini: Story = {
29    args: {
30        stargazers_count: 1000,
31        variant: "mini"
32    }
33}
34