Skip to content

Commit 00d54fc

Browse files
committed
AI: update stories
1 parent 3c01339 commit 00d54fc

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

packages/ai/src/components/Input/Input.stories.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
import '@ui5/webcomponents-ai/dist/Input.js';
2-
import '@ui5/webcomponents/dist/MenuItem.js';
31
import type { Meta, StoryObj } from '@storybook/react-vite';
4-
import { MenuItem } from '@ui5/webcomponents-react';
5-
import { useRef, useState } from 'react';
62
import { Input } from './index.js';
73

84
const meta = {
95
title: 'Input',
106
component: Input,
117
argTypes: {
128
actions: { control: { disable: true } },
9+
icon: { control: { disable: true } },
10+
valueStateMessage: { control: { disable: true } },
1311
},
1412
tags: ['package:@ui5/webcomponents-ai', 'experimental'],
1513
} satisfies Meta<typeof Input>;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
2+
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
3+
import * as ComponentStories from './TextArea.stories.tsx';
4+
5+
<Meta of={ComponentStories} />
6+
7+
<DocsHeader of={ComponentStories} experimental />
8+
9+
<br />
10+
11+
## Example
12+
13+
<Canvas of={ComponentStories.Default} />
14+
15+
## Properties
16+
17+
<ControlsWithNote of={ComponentStories.Default} />
18+
19+
<Footer />
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { Meta, StoryObj } from '@storybook/react-vite';
2+
import { TextArea } from './index.js';
3+
4+
const meta = {
5+
title: 'TextArea',
6+
component: TextArea,
7+
argTypes: {
8+
menu: { control: { disable: true } },
9+
valueStateMessage: { control: { disable: true } },
10+
},
11+
tags: ['package:@ui5/webcomponents-ai', 'experimental'],
12+
} satisfies Meta<typeof TextArea>;
13+
14+
export default meta;
15+
type Story = StoryObj<typeof meta>;
16+
17+
export const Default: Story = {};

0 commit comments

Comments
 (0)