UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

29 lines (28 loc) 1.06 kB
import React from "react"; import { TextReducerProps } from "../TextReducer/TextReducer"; import { ChatContentProps } from "./ChatContent"; export interface ChatContentCollapsedProps { children: React.ReactElement<ChatContentProps>; /** * Set this to `false` if the compoment should initally start in an expanded state. */ collapsed?: boolean; /** * Use this to set extra `TextReducer` properties. * This is used to create the collapsed variant of the given content. */ textReducerProps?: Omit<TextReducerProps, "children">; /** * Text for collapse button. */ textCollapse?: string; /** * Text for expand button. */ textExpand?: string; } /** * Adds an auto collapsing feature for convenience to `ChatContent`. */ export declare const ChatContentCollapsed: ({ children, collapsed, textReducerProps, textCollapse, textExpand, }: ChatContentCollapsedProps) => React.ReactElement<ChatContentProps, string | React.JSXElementConstructor<any>>; export default ChatContentCollapsed;