mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
36 lines
701 B
TypeScript
36 lines
701 B
TypeScript
import type { MessageBlockProps } from "$/types/MessageTypes";
|
|
import clsx from "clsx";
|
|
|
|
|
|
export default function MessageBlock(props: MessageBlockProps){
|
|
const {
|
|
className,
|
|
outline = "sm",
|
|
rounded = "lg",
|
|
...messageProps
|
|
} = props;
|
|
|
|
|
|
return (
|
|
<div
|
|
{...messageProps}
|
|
className={clsx(
|
|
className,
|
|
"px-4 py-2",
|
|
{
|
|
"border-0": outline === "none",
|
|
"border-1": outline === "sm",
|
|
"border-2": outline === "md",
|
|
"border-3": outline === "lg"
|
|
},
|
|
{
|
|
"rounded-none": rounded === "none",
|
|
"rounded-xs": rounded === "xs",
|
|
"rounded": rounded === "md",
|
|
"rounded-lg": rounded === "lg",
|
|
"rounded-xl": rounded === "xl"
|
|
}
|
|
)}
|
|
/>
|
|
);
|
|
} |