Refactor renamed the component groups to something less obtuse:
Elements -> Groups -> Screens -> Views
This commit is contained in:
parent
ca6de91a96
commit
dd46acba87
2 changed files with 151 additions and 144 deletions
|
|
@ -0,0 +1,22 @@
|
|||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { TransportBadge } from "./TransportBadge";
|
||||
|
||||
const meta: Meta<typeof TransportBadge> = {
|
||||
title: "Elements/TransportBadge",
|
||||
component: TransportBadge,
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof TransportBadge>;
|
||||
|
||||
export const Stdio: Story = {
|
||||
args: {
|
||||
transport: "stdio",
|
||||
},
|
||||
};
|
||||
|
||||
export const Http: Story = {
|
||||
args: {
|
||||
transport: "http",
|
||||
},
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import { Badge } from "@mantine/core";
|
||||
|
||||
export interface TransportBadgeProps {
|
||||
transport: "stdio" | "http";
|
||||
}
|
||||
|
||||
export function TransportBadge({ transport }: TransportBadgeProps) {
|
||||
return (
|
||||
<Badge variant="outline" color="gray">
|
||||
{transport.toUpperCase()}
|
||||
</Badge>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue