Sha256: 62dcfc9b1a4bf9e57be6da5caa4cfd878757a739b38818f216f1920e12ef2d33

Contents?: true

Size: 755 Bytes

Versions: 27

Compression:

Stored size: 755 Bytes

Contents

import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"

import { cn } from "@/lib/utils"

const Separator = React.forwardRef<
  React.ElementRef<typeof SeparatorPrimitive.Root>,
  React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
>(
  (
    { className, orientation = "horizontal", decorative = true, ...props },
    ref
  ) => (
    <SeparatorPrimitive.Root
      ref={ref}
      decorative={decorative}
      orientation={orientation}
      className={cn(
        "shrink-0 bg-border",
        orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
        className
      )}
      {...props}
    />
  )
)
Separator.displayName = SeparatorPrimitive.Root.displayName

export { Separator }

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc7 app/frontend/components/ui/separator.tsx
easy_ml-0.2.0.pre.rc6 app/frontend/components/ui/separator.tsx
easy_ml-0.2.0.pre.rc5 app/frontend/components/ui/separator.tsx
easy_ml-0.2.0.pre.rc4 app/frontend/components/ui/separator.tsx
easy_ml-0.2.0.pre.rc3 app/frontend/components/ui/separator.tsx
easy_ml-0.2.0.pre.rc2 app/frontend/components/ui/separator.tsx
easy_ml-0.2.0.pre.rc1 app/frontend/components/ui/separator.tsx