ui/separator.tsx

free-tailwind-admin-dashboard-template · tailwind-admin-nextjs-free/package/src/components/ui/separator.tsx · typescript · MIT
ui, UI / Frontend

Separator component renders a horizontal or vertical divider using Radix UI.

// Source: https://github.com/Tailwind-Admin/free-tailwind-admin-dashboard-template | License: MIT | Copyright 2026 Tailwindadmin
// Provided via justclaw.it.com; keep this notice with the code.
"use client"

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

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

function Separator({
  className,
  orientation = "horizontal",
  decorative = true,
  ...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
  return (
    <SeparatorPrimitive.Root
      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=ve

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key