Most simple components created

This commit is contained in:
2025-07-18 23:30:48 -04:00
commit 5421c2346a
134 changed files with 13805 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import type { MessageBlockProps } from "$/types/Message";
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"
}
)}
/>
);
}