This commit is contained in:
Benjamin Toby
2024-10-17 09:06:54 +01:00
parent 25daf1844e
commit f73b56cdc4
25 changed files with 408 additions and 35 deletions
+6 -1
View File
@@ -1,6 +1,10 @@
import { DetailedHTMLProps, HTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
/**
* # Horizonta Rule (hr)
* @className twui-hr
*/
export default function HR({
...props
}: DetailedHTMLProps<HTMLAttributes<HTMLHRElement>, HTMLHRElement>) {
@@ -8,7 +12,8 @@ export default function HR({
<hr
{...props}
className={twMerge(
"bg-slate-400 w-full dark:bg-white/20 my-4",
"border-slate-200 dark:border-white/20 w-full my-4",
"twui-hr",
props.className
)}
/>