@engie-group/fluid-design-system-react
Version:
Fluid Design System React
39 lines (38 loc) • 1.39 kB
TypeScript
import React from 'react';
import { ChatInputProps } from '@engie-group/fluid-types';
export type NJChatInputProps = React.ComponentPropsWithoutRef<'textarea'> & ChatInputProps & {
/**
* The files to be displayed in the chat input.
*/
files?: React.ReactNode;
/**
* The primary action button of the chat input.
*/
primary_action?: React.ReactNode;
/**
* The secondary actions buttons to be displayed in the chat input.
*/
secondary_actions?: React.ReactNode;
/**
* The suggestions to be displayed in the chat input to help the user to write a message.
*/
suggestions?: React.ReactNode;
};
export declare const NJChatInputRoot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & ChatInputProps & {
/**
* The files to be displayed in the chat input.
*/
files?: React.ReactNode;
/**
* The primary action button of the chat input.
*/
primary_action?: React.ReactNode;
/**
* The secondary actions buttons to be displayed in the chat input.
*/
secondary_actions?: React.ReactNode;
/**
* The suggestions to be displayed in the chat input to help the user to write a message.
*/
suggestions?: React.ReactNode;
} & React.RefAttributes<HTMLTextAreaElement>>;