AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

separator.tsx 690B

1234567891011121314151617181920212223242526
  1. import * as SeparatorPrimitive from "@radix-ui/react-separator"
  2. import * as React from "react"
  3. import { cn } from "@/lib/utils"
  4. function Separator({
  5. className,
  6. orientation = "horizontal",
  7. decorative = true,
  8. ...props
  9. }: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
  10. return (
  11. <SeparatorPrimitive.Root
  12. data-slot="separator-root"
  13. decorative={decorative}
  14. orientation={orientation}
  15. className={cn(
  16. "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
  17. className
  18. )}
  19. {...props}
  20. />
  21. )
  22. }
  23. export { Separator }