feat: add basic webui
This commit is contained in:
62
apps/storybook/stories/badge.stories.tsx
Normal file
62
apps/storybook/stories/badge.stories.tsx
Normal file
@@ -0,0 +1,62 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react';
|
||||
|
||||
import { Badge } from '@konobangu/design-system/components/ui/badge';
|
||||
|
||||
/**
|
||||
* Displays a badge or a component that looks like a badge.
|
||||
*/
|
||||
const meta = {
|
||||
title: 'ui/Badge',
|
||||
component: Badge,
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
children: {
|
||||
control: 'text',
|
||||
},
|
||||
},
|
||||
args: {
|
||||
children: 'Badge',
|
||||
},
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
} satisfies Meta<typeof Badge>;
|
||||
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
/**
|
||||
* The default form of the badge.
|
||||
*/
|
||||
export const Default: Story = {};
|
||||
|
||||
/**
|
||||
* Use the `secondary` badge to call for less urgent information, blending
|
||||
* into the interface while still signaling minor updates or statuses.
|
||||
*/
|
||||
export const Secondary: Story = {
|
||||
args: {
|
||||
variant: 'secondary',
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Use the `destructive` badge to indicate errors, alerts, or the need for
|
||||
* immediate attention.
|
||||
*/
|
||||
export const Destructive: Story = {
|
||||
args: {
|
||||
variant: 'destructive',
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Use the `outline` badge for overlaying without obscuring interface details,
|
||||
* emphasizing clarity and subtlety..
|
||||
*/
|
||||
export const Outline: Story = {
|
||||
args: {
|
||||
variant: 'outline',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user