Skip to content

COMPONENT / hud-bracket-button

HUD Bracket Button_

Dark button framed by HUD corner brackets that snap out 5px on hover. 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/hud-bracket-button

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

Preview

Props

Component props
PropTypeDefaultDescription
type"button" | "submit" | "reset""button"Native button type. Defaults to button so it never submits a form by accident.
childrenReactNode—Label text.
classNamestring—Extra classes, merged after the defaults with cn().
disabledbooleanfalseNative disabled. Shows the dashed offline style; brackets turn --dim and stay put.
...propsComponentProps<"button">—Every other native <button> attribute, ref and event handler is forwarded.

Usage

Needs the stylesheet from @cybr/tokens. After the install, import it in app/globals.css after @import "tailwindcss";.

import { HudBracketButton } from "@/components/ui/hud-bracket-button";

export function Action() {
  return <HudBracketButton onClick={() => console.log("lock")}>Target</HudBracketButton>;
}

States

Accessibility