BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/simple-ai/node-header

node-header

simple-ai/node-header
FreeComponent

simple-ai publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by simple-ai on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://simple-ai.dev/r/node-header.json

Source

./src/registry/ui/flow/node-header.tsxsimple-ai.dev/r/node-header.json
1import { Slot } from "@radix-ui/react-slot";
2import { EllipsisVertical } from "lucide-react";
3import React, { type ComponentProps } from "react";
4import { Button } from "@/components/ui/button";
5import {
6 DropdownMenu,
7 DropdownMenuContent,
8 DropdownMenuTrigger,
9} from "@/components/ui/dropdown-menu";
10import { cn } from "@/lib/utils";
11
12/* NODE HEADER -------------------------------------------------------------- */
13
14export type NodeHeaderProps = React.HTMLAttributes<HTMLElement>;
15
16/**
17 * A container for a consistent header layout intended to be used inside the
18 * `<BaseNode />` component.
19 */
20export const NodeHeader = React.forwardRef<HTMLElement, NodeHeaderProps>(
21 ({ className, ...props }, ref) => {
22 return (
23 <header
24 ref={ref}
25 {...props}
26 className={cn(
27 "mb-4 flex items-center justify-between gap-2 px-3 py-2",
28 // Remove or modify these classes if you modify the padding in the
29 // `<BaseNode />` component.
30 "-mx-5 -mt-5",
31 className,
32 )}
33 />
34 );
35 },
36);
37
38NodeHeader.displayName = "NodeHeader";
39
40/* NODE HEADER TITLE -------------------------------------------------------- */
41
42export interface NodeHeaderTitleProps
43 extends React.HTMLAttributes<HTMLHeadingElement> {
44 asChild?: boolean;
45}
46
47/**
48 * The title text for the node. To maintain a native application feel, the title
49 * text is not selectable.
50 */
51export const NodeHeaderTitle = React.forwardRef<
52 HTMLHeadingElement,
53 NodeHeaderTitleProps
54>(({ className, asChild, ...props }, ref) => {
55 const Comp = asChild ? Slot : "h3";
56
57 return (
58 <Comp
59 ref={ref}
60 {...props}
61 className={cn(className, "user-select-none flex-1 font-semibold")}
62 />
63 );
64});
65
66NodeHeaderTitle.displayName = "NodeHeaderTitle";
67
68/* NODE HEADER ICON --------------------------------------------------------- */
69
70export type NodeHeaderIconProps = React.HTMLAttributes<HTMLSpanElement>;
71
72export const NodeHeaderIcon = React.forwardRef<
73 HTMLSpanElement,
74 NodeHeaderIconProps
75>(({ className, ...props }, ref) => {
76 return (
77 <span ref={ref} {...props} className={cn(className, "[&>*]:size-5")} />
78 );
79});
80
81NodeHeaderIcon.displayName = "NodeHeaderIcon";
82
83/* NODE HEADER ACTIONS ------------------------------------------------------ */
84
85export type NodeHeaderActionsProps = React.HTMLAttributes<HTMLDivElement>;
86
87/**
88 * A container for right-aligned action buttons in the node header.
89 */
90export const NodeHeaderActions = React.forwardRef<
91 HTMLDivElement,
92 NodeHeaderActionsProps
93// … truncated

What it pulls in

Other registry items

  • button
  • dropdown-menu

Files it writes

  • ./src/registry/ui/flow/node-header.tsx

Facts

Registry
simple-ai
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on simple-ai simple-ai.dev Alwurts/simple-ai on GitHub Raw registry item This item as JSON

More from simple-ai

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
base-handlebase-handlesimple-aiComponentsFree1 dep
base-nodebase-nodesimple-aiComponentsFreeno deps
Chat Inputchat-inputsimple-aiComponentsFree7 deps
Chat Messagechat-messagesimple-aiComponentsFreeno deps
Chat Message Areachat-message-areasimple-aiComponentsFree1 dep
Chat Suggestionschat-suggestionssimple-aiComponentsFreeno deps
Editable Handleeditable-handlesimple-aiComponentsFree1 dep
Generate Text Nodegenerate-text-nodesimple-aiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex