Skip to content

rune-langium / visual-editor/src / TypeHeaderProps

Interface: TypeHeaderProps ​

Defined in: packages/visual-editor/src/components/TypeHeader.tsx:30

Properties ​

PropertyTypeDescriptionDefined 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
kindTypeKind-packages/visual-editor/src/components/TypeHeader.tsx:31
name?stringRead-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?() => voidReveal-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?ReactNodeRendered after the KindBadge (e.g. a "Reference Only" badge in OtherForm).packages/visual-editor/src/components/TypeHeader.tsx:35

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.