@automattic/agenttic-ui
Version:
UI components for the Agenttic framework
62 lines • 2.74 kB
TypeScript
import type { StoryObj } from '@storybook/react';
import { type ActionButton, ChatInput } from './ChatInput';
import React from 'react';
declare const meta: {
title: string;
component: typeof ChatInput;
parameters: {
layout: string;
};
tags: string[];
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
value: string;
onChange: (value: string) => void;
onSubmit: () => void;
onKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
textareaRef: React.RefObject<HTMLTextAreaElement>;
placeholder?: string | string[] | undefined;
isProcessing: boolean;
onBlur?: (() => void) | undefined;
fromCompact?: boolean | undefined;
onExpand?: (() => void) | undefined;
showExpandButton?: boolean | undefined;
focusOnMount?: boolean | undefined;
customActions?: ActionButton[] | undefined;
actionOrder?: "before-submit" | "after-submit" | undefined;
onStop?: (() => void) | undefined;
disabled?: boolean | undefined;
className?: string | undefined;
onMouseEnter?: (() => void) | undefined;
onMouseLeave?: (() => void) | undefined;
}>, context: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
value: string;
onChange: (value: string) => void;
onSubmit: () => void;
onKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
textareaRef: React.RefObject<HTMLTextAreaElement>;
placeholder?: string | string[] | undefined;
isProcessing: boolean;
onBlur?: (() => void) | undefined;
fromCompact?: boolean | undefined;
onExpand?: (() => void) | undefined;
showExpandButton?: boolean | undefined;
focusOnMount?: boolean | undefined;
customActions?: ActionButton[] | undefined;
actionOrder?: "before-submit" | "after-submit" | undefined;
onStop?: (() => void) | undefined;
disabled?: boolean | undefined;
className?: string | undefined;
onMouseEnter?: (() => void) | undefined;
onMouseLeave?: (() => void) | undefined;
}>) => import("react/jsx-runtime").JSX.Element)[];
};
export default meta;
type Story = StoryObj<typeof meta>;
export declare const Default: Story;
export declare const Processing: Story;
export declare const WithExpandButton: Story;
export declare const WithCustomActions: Story;
export declare const WithCustomActionsAfterSubmit: Story;
export declare const DisabledSubmit: Story;
export declare const DisabledWithValidation: Story;
//# sourceMappingURL=ChatInput.stories.d.ts.map