@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
28 lines (27 loc) • 763 B
TypeScript
import React, { HTMLAttributes } from "react";
import { HeadingProps } from "../typography/index.js";
export interface ChatBubbleProps extends HTMLAttributes<HTMLDivElement> {
/**
* Bubble text.
*/
children: React.ReactNode;
/**
* Name/sender on bubble.
*/
name?: string;
/**
* Timestamp for sent message.
*/
timestamp?: string;
/**
* Overrides hoizontal position of toptext.
*/
toptextPosition?: "left" | "right";
/**
* The heading level for the toptext.
* @default "3"
*/
toptextHeadingLevel?: Exclude<HeadingProps["level"], "1">;
}
declare const Bubble: React.ForwardRefExoticComponent<ChatBubbleProps & React.RefAttributes<HTMLDivElement>>;
export default Bubble;