Spaces:
Sleeping
Sleeping
Download frontend/src/components/ui/separator.tsx from Kacemath/SearchAlgorithms: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/Kacemath/SearchAlgorithms/resolve/main/frontend/src/components/ui/separator.tsx
- Command line
-
hf download hf://spaces/Kacemath/SearchAlgorithms/frontend/src/components/ui/separator.tsx
-
curl -L -o separator.tsx https://huggingface.co/spaces/Kacemath/SearchAlgorithms/resolve/main/frontend/src/components/ui/separator.tsx
579 Bytes
| import * as React from "react" | |
| import { cn } from "@/lib/utils" | |
| interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> { | |
| orientation?: "horizontal" | "vertical" | |
| } | |
| const Separator = React.forwardRef<HTMLDivElement, SeparatorProps>( | |
| ({ className, orientation = "horizontal", ...props }, ref) => ( | |
| <div | |
| ref={ref} | |
| className={cn( | |
| "shrink-0 bg-zinc-800", | |
| orientation === "horizontal" ? "h-px w-full" : "h-full w-px", | |
| className | |
| )} | |
| {...props} | |
| /> | |
| ) | |
| ) | |
| Separator.displayName = "Separator" | |
| export { Separator } | |