rune-langium / visual-editor/src / TypeHeaderProps
Interface: TypeHeaderProps
Defined in: packages/visual-editor/src/components/TypeHeader.tsx:30
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
className? | string | - | packages/visual-editor/src/components/TypeHeader.tsx:33 |
control? | Control<any> | Editable variant: react-hook-form control bound to the "name" field. | packages/visual-editor/src/components/TypeHeader.tsx:37 |
kind | TypeKind | - | packages/visual-editor/src/components/TypeHeader.tsx:31 |
name? | string | Read-only variant: static name (used when control is absent). | packages/visual-editor/src/components/TypeHeader.tsx:42 |
nameAriaLabel? | string | - | packages/visual-editor/src/components/TypeHeader.tsx:40 |
namespace? | string | - | packages/visual-editor/src/components/TypeHeader.tsx:32 |
onNameChange? | (value) => void | - | packages/visual-editor/src/components/TypeHeader.tsx:38 |
onReveal? | () => void | Reveal-in-graph action. When provided, a header icon button navigates to this type's graph node (parents bind it to onNavigateToNode(nodeId)). When absent (callback or node id unavailable at the mount), the button is not rendered — no dead control. | packages/visual-editor/src/components/TypeHeader.tsx:49 |
placeholder? | string | - | packages/visual-editor/src/components/TypeHeader.tsx:39 |
trailing? | ReactNode | Rendered after the KindBadge (e.g. a "Reference Only" badge in OtherForm). | packages/visual-editor/src/components/TypeHeader.tsx:35 |