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/labeled-handle

labeled-handle

simple-ai/labeled-handle
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/labeled-handle.json

Source

./src/registry/ui/flow/labeled-handle.tsxsimple-ai.dev/r/labeled-handle.json
1"use client";
2
3import type { HandleProps } from "@xyflow/react";
4import React from "react";
5import { cn } from "@/lib/utils";
6
7import { BaseHandle } from "@/registry/ui/flow/base-handle";
8
9const flexDirections = {
10 top: "flex-col",
11 right: "flex-row-reverse justify-end",
12 bottom: "flex-col-reverse justify-end",
13 left: "flex-row",
14};
15
16const LabeledHandle = React.forwardRef<
17 HTMLDivElement,
18 HandleProps &
19 React.HTMLAttributes<HTMLDivElement> & {
20 title: string;
21 handleClassName?: string;
22 labelClassName?: string;
23 }
24>(
25 (
26 {
27 className,
28 labelClassName,
29 handleClassName,
30 title,
31 position,
32 ...props
33 },
34 ref,
35 ) => (
36 <div
37 ref={ref}
38 title={title}
39 className={cn(
40 "relative flex items-center",
41 flexDirections[position],
42 className,
43 )}
44 >
45 <BaseHandle
46 position={position}
47 className={handleClassName}
48 {...props}
49 />
50 {/* biome-ignore lint/a11y/noLabelWithoutControl: Needed */}
51 <label className={cn("px-3 text-foreground", labelClassName)}>
52 {title}
53 </label>
54 </div>
55 ),
56);
57
58LabeledHandle.displayName = "LabeledHandle";
59
60export { LabeledHandle };

What it pulls in

npm packages

  • @xyflow/react

Files it writes

  • ./src/registry/ui/flow/labeled-handle.tsx

Facts

Registry
simple-ai
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
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