Skip to content

Commit e711b85

Browse files
committed
DTNode: add Storybook story
1 parent e13d40a commit e711b85

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

app/DTNode.stories.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { Meta, StoryObj } from '@storybook/react';
2+
import { fn } from '@storybook/test';
3+
import { DataNode } from './DTNode';
4+
5+
const meta = {
6+
title: 'App/DTNode',
7+
component: DataNode,
8+
argTypes: {
9+
data: {
10+
label: { control: 'text' },
11+
},
12+
status: { control: 'radio', options: ['okay', 'disabled'] },
13+
},
14+
} satisfies Meta<typeof DataNode>;
15+
16+
export default meta;
17+
type Story = StoryObj<typeof meta>;
18+
19+
export const Simple: Story = {
20+
args: {
21+
data: {
22+
label: "UART\n0x0c00_0000",
23+
},
24+
status: "okay",
25+
},
26+
};

0 commit comments

Comments
 (0)