Skip to content

COMPONENT / neon-edge-card

Neon Edge Card_

Link card whose border lights up in signal with a tight glow on hover and keyboard focus. Requires @cybr/tokens.

Install

  1. 1. Map the @cybr namespace, once per project. Add this inside your components.json, or into its existing "registries" object. No components.json yet? Run npx shadcn@latest init first to create one.

    "registries": { "@cybr": "https://cybr-ui.com/r/{name}.json" }
  2. 2. Add components:

    $ npx shadcn@latest add @cybr/neon-edge-card

If shadcn reports Unknown registry "@cybr", step 1 is missing from that project's components.json.

Preview

Props

Component props
PropTypeDefaultDescription
titleReactNode—Card title, set in the display face.
eyebrowReactNode—Small mono line at the top.
ctaReactNode—Signal-coloured call to action at the bottom.
hrefstring—Link target. The whole card is one link.
...propsOmit<ComponentProps<"a">, "title" | "children">—Every other native <a> attribute is forwarded; className is merged last with cn().

Usage

Needs the stylesheet from @cybr/tokens. After the install, import it in app/globals.css:

@import "tailwindcss";
@import "../styles/cybr-tokens.css";
import { NeonEdgeCard } from "@/components/ui/neon-edge-card";

export function Next() {
  return <NeonEdgeCard href="/docs/components" eyebrow="NEXT" title="Component index" cta="OPEN →" />;
}

States

Accessibility