Update themed components with refs and css

This commit is contained in:
2026-02-10 21:09:36 -05:00
parent 456feed128
commit 2e54b81d8f
72 changed files with 1147 additions and 562 deletions

View File

@@ -1,16 +1,14 @@
import type { MessageBlockProps } from "$/types/MessageTypes";
import clsx from "clsx";
import { forwardRef } from "react";
export default function MessageBlock(props: MessageBlockProps){
const {
className,
outline = "sm",
rounded = "lg",
...messageProps
} = props;
const MessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
className,
outline = "sm",
rounded = "lg",
...messageProps
}, ref ) => {
return (
<div
data-testid="mattrixwv-message-block"
@@ -33,6 +31,11 @@ export default function MessageBlock(props: MessageBlockProps){
"rounded-xl": rounded === "xl"
}
)}
ref={ref}
/>
);
}
});
MessageBlock.displayName = "MessageBlock";
export default MessageBlock;