feat: add core UI components and baseline tests

This commit is contained in:
2026-03-19 16:56:27 +08:00
parent 12642e0a92
commit 063179933c
73 changed files with 5756 additions and 2 deletions
@@ -0,0 +1,46 @@
import {
Button,
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger
} from "@ai-ui/ui";
import type { Meta, StoryObj } from "@storybook/react";
const meta = {
title: "Components/Dialog",
component: Dialog,
parameters: {
layout: "centered"
},
tags: ["autodocs"]
} satisfies Meta<typeof Dialog>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Playground: Story = {
render: () => (
<Dialog>
<DialogTrigger asChild>
<Button>Open approval dialog</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Launch this release?</DialogTitle>
<DialogDescription>
This will notify the routing team and publish the release note to the activity feed.
</DialogDescription>
</DialogHeader>
<DialogFooter>
<Button variant="ghost">Cancel</Button>
<Button>Confirm launch</Button>
</DialogFooter>
</DialogContent>
</Dialog>
)
};