We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 224ab8f commit bdeac5aCopy full SHA for bdeac5a
lib/static/separator/SeparatorWithText.tsx
@@ -1,17 +1,16 @@
1
-import { classMerge } from "~ui/utils/classMerge"
+import { classArr } from "~ui/utils/classArr"
2
import type { MayHaveChildrenAndClass } from "~ui/utils/MayHaveChildrenAndClass"
3
4
export function SeparatorWithText(p: MayHaveChildrenAndClass) {
5
return (
6
- <div
7
- class={classMerge(
8
- "flex items-center",
9
- "before:mt-0.5 before:flex-1 before:border-t",
10
- "after:mt-0.5 after:flex-1 after:border-t",
11
- p.class,
12
- )}
13
- >
+ <div class={classArr("w-full flex flex-row items-center")}>
+ <Line />
14
{p.children}
15
</div>
16
)
17
}
+
+function Line() {
+ return <div class="flex-1 h-0.5 bg-gray-400 dark:bg-gray-600 mx-4" />
+}
0 commit comments