mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Add message block tests
This commit is contained in:
@@ -13,24 +13,26 @@ export default function MessageBlock(props: MessageBlockProps){
|
||||
|
||||
return (
|
||||
<div
|
||||
data-testid="mattrixwv-message-block"
|
||||
{...messageProps}
|
||||
className={clsx(
|
||||
className,
|
||||
"px-4 py-2",
|
||||
{
|
||||
"border-0": outline === "none",
|
||||
"border-1": outline === "sm",
|
||||
"border": outline === "sm",
|
||||
"border-2": outline === "md",
|
||||
"border-3": outline === "lg"
|
||||
},
|
||||
{
|
||||
"rounded-none": rounded === "none",
|
||||
"rounded-xs": rounded === "xs",
|
||||
"rounded": rounded === "md",
|
||||
"rounded-sm": rounded === "sm",
|
||||
"rounded-md": rounded === "md",
|
||||
"rounded-lg": rounded === "lg",
|
||||
"rounded-xl": rounded === "xl"
|
||||
}
|
||||
)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user