TreeLinkcomponent
TreeLink({ name, children, ...props }: TreeLinkProps): ReactElement| Param | Type | |
|---|---|---|
props | TreeLinkProps | Props for the TreeLink component — the element reference plus an optional label. required |
.name | string | Reference to an element in the tree — a flat key ( "BooleanSchema", "Store.get") or a canonical path ("/schema/BooleanSchema"). required readonly |
Inline Code token linking to a specific tree element, resolved by reference string — the link-styled counterpart of TreeButton.
- Resolves
nameviagetTreeElement()— by flat key or canonical path, falling back to the bare name for a single generic type (Schema<T>→Schema) — and links to the element's canonicalpath. - A hit becomes a
<Link>wrapping a<Code>token; a miss (e.g. a builtin likestringor a compound type likeT | nullthat isn't an exact token) stays a plain<Code>so it still reads as code. - Designed for the
Typecolumn of the documentation Parameters / Returns / Throws / Types tables, where only exact-match type names should link.
Examples
<TreeLink name="BooleanSchema" />