From 56fd7e0a6d3800e5f0b0353fd3ea1911b5af6461 Mon Sep 17 00:00:00 2001 From: themechbro Date: Thu, 26 Mar 2026 23:48:17 +0530 Subject: [PATCH] feat(react-chat): allow custom className on ChatMessage and ChatMyMessage (fixes #388) --- .../react-chat/src/components/ChatMessage/ChatMessage.types.ts | 2 +- .../src/components/ChatMyMessage/ChatMyMessage.types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-chat/src/components/ChatMessage/ChatMessage.types.ts b/packages/react-chat/src/components/ChatMessage/ChatMessage.types.ts index a87fb77de..a96b7b9e6 100644 --- a/packages/react-chat/src/components/ChatMessage/ChatMessage.types.ts +++ b/packages/react-chat/src/components/ChatMessage/ChatMessage.types.ts @@ -42,7 +42,7 @@ export type ChatMessageSlots = { */ export type ChatMessageProps = Omit< ComponentProps, 'body'>, - 'className' | 'style' | 'ref' | 'id' | 'tabIndex' + 'style' | 'ref' | 'id' | 'tabIndex' > & { /** * Whether the bubble is on the top/center/bottom of a group of messages. diff --git a/packages/react-chat/src/components/ChatMyMessage/ChatMyMessage.types.ts b/packages/react-chat/src/components/ChatMyMessage/ChatMyMessage.types.ts index 6386f9870..26b9a6154 100644 --- a/packages/react-chat/src/components/ChatMyMessage/ChatMyMessage.types.ts +++ b/packages/react-chat/src/components/ChatMyMessage/ChatMyMessage.types.ts @@ -58,7 +58,7 @@ export type ChatMyMessageSlots = { export type ChatMyMessageProps = Omit< ComponentProps, 'body'>, - 'className' | 'style' | 'ref' | 'id' + 'style' | 'ref' | 'id' > & { decoration?: 'important' | 'urgent'; status?: 'sending' | 'received' | 'read' | 'failed' | 'blocked' | 'scheduled';