TWIGS

Separator

Visually or semantically separates content.

Playground

Account

Billing

Notifications

Account

Billing

Notifications

Installation

Install in any React + Tailwind project:

$npx shadcn@latest add https://twigs.globirdenergy.com.au/r/separator.json

Source

The exact file the registry serves to consumers.

import * as React from 'react';
import { cn } from '@/lib/utils';

function Separator({
  className,
  orientation = 'horizontal',
  ...props
}: React.ComponentProps<'div'> & { orientation?: 'horizontal' | 'vertical' }) {
  return (
    <div
      data-slot="separator"
      data-orientation={orientation}
      role="separator"
      aria-orientation={orientation}
      className={cn(
        // Spec source: Figma "APP Re-design Phase 1" → page "Separator ✅" (1px stroke, muted #f4f4f5)
        'bg-muted shrink-0',
        orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',
        className,
      )}
      {...props}
    />
  );
}

export { Separator };