feat: add basic webui

This commit is contained in:
2024-12-30 06:39:09 +08:00
parent 608a7fb9c6
commit a4c549e7c3
462 changed files with 35900 additions and 2491 deletions

View File

@@ -0,0 +1,45 @@
import type { Meta, StoryObj } from '@storybook/react';
import { Progress } from '@konobangu/design-system/components/ui/progress';
/**
* Displays an indicator showing the completion progress of a task, typically
* displayed as a progress bar.
*/
const meta = {
title: 'ui/Progress',
component: Progress,
tags: ['autodocs'],
argTypes: {},
args: {
value: 30,
max: 100,
},
} satisfies Meta<typeof Progress>;
export default meta;
type Story = StoryObj<typeof meta>;
/**
* The default form of the progress.
*/
export const Default: Story = {};
/**
* When the progress is indeterminate.
*/
export const Indeterminate: Story = {
args: {
value: undefined,
},
};
/**
* When the progress is completed.
*/
export const Completed: Story = {
args: {
value: 100,
},
};