aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/ui-new/src/components/ui/separator.tsx
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2026-02-22 19:47:13 +0800
committer苏向夜 <fu050409@163.com>2026-02-22 19:47:13 +0800
commit01b546cc816c4fb6b7389e5122b7802d7e724a2b (patch)
treeb33e71dc81c60a6678e6fb14f736713bd94bd5dc /packages/ui-new/src/components/ui/separator.tsx
parent1a103de2f1ef75cd73347953cbe27e14606df871 (diff)
downloadDropOut-01b546cc816c4fb6b7389e5122b7802d7e724a2b.tar.gz
DropOut-01b546cc816c4fb6b7389e5122b7802d7e724a2b.zip
refactor(shadcn): use base lyra instead
Diffstat (limited to 'packages/ui-new/src/components/ui/separator.tsx')
-rw-r--r--packages/ui-new/src/components/ui/separator.tsx11
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/ui-new/src/components/ui/separator.tsx b/packages/ui-new/src/components/ui/separator.tsx
index 50733e0..e91a862 100644
--- a/packages/ui-new/src/components/ui/separator.tsx
+++ b/packages/ui-new/src/components/ui/separator.tsx
@@ -1,23 +1,20 @@
"use client";
-import * as SeparatorPrimitive from "@radix-ui/react-separator";
-import type * as React from "react";
+import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
import { cn } from "@/lib/utils";
function Separator({
className,
orientation = "horizontal",
- decorative = true,
...props
-}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
+}: SeparatorPrimitive.Props) {
return (
- <SeparatorPrimitive.Root
+ <SeparatorPrimitive
data-slot="separator"
- decorative={decorative}
orientation={orientation}
className={cn(
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
+ "bg-border shrink-0 data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
className,
)}
{...props}