Design system
GitHub

Component

Separator

Horizontal or vertical divider.

npx -y github:anwarlemu/agentcard-brand-cli#release add separator
separator.preview

Get started

Let your agent buy

A few answers, then a call.

Vault
Issuing
Voice
Preview

Usage

use-it-for.md

Use between related content groups or inline controls.

never.md
  • Thick or colored rules
  • Rules between every row of a card
  • A smooth fade between the blue and white grounds (that is the band divider)

Dependencies: @radix-ui/react-separator.

Example

examples/separator.tsx
import { Separator } from "@/components/ui/separator";

export function Site() {
  return (
    <div className="grid max-w-2xl gap-8">
      <div className="grid gap-4">
        <p className="font-display text-caption text-fg-label">Get started</p>
        <h2 className="text-h1 leading-heading">Let your agent buy</h2>
        <p className="text-body-lg text-fg-muted">A few answers, then a call.</p>
      </div>
      <Separator />
      <div className="flex h-5 items-center gap-4 font-display text-body-sm text-fg-muted">
        <span>Vault</span>
        <Separator orientation="vertical" />
        <span>Issuing</span>
        <Separator orientation="vertical" />
        <span>Voice</span>
      </div>
    </div>
  );
}

Source

components/ui/separator.tsx
"use client";

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

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

// The brand's rule: one pixel of ink at 14 percent, as between the FAQ's questions and under a page's title block.
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("shrink-0 bg-line data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className)}
      {...props}
    />
  );
}

export { Separator };

Reference: agentcard-website src/app/globals.css (--line); live https://www.agentcard.sh/get-started.