Skip to content

Commit

Permalink
app/DTNode: add Storybook story
Browse files Browse the repository at this point in the history
  • Loading branch information
orangecms committed Aug 20, 2024
1 parent 6924efb commit c7a9b78
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions app/DTNode.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import type { Meta, StoryObj } from '@storybook/react';
import { fn } from '@storybook/test';
import { DataNode } from './DTNode';

const meta = {
title: 'App/DTNode',
component: DataNode,
argTypes: {
data: {
label: { control: 'text' },
},
status: { control: 'radio', options: ['okay', 'disabled'] },
},
} satisfies Meta<typeof DataNode>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Simple: Story = {
args: {
data: {
label: "UART\n0x0c00_0000",
},
status: "okay",
},
};

0 comments on commit c7a9b78

Please sign in to comment.