Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/feature-catalog/components/FeatureStructure

Cockpit client (features), next. Source: ui/client/features/feature-catalog/components/FeatureStructure.tsx.

Functions#

FeatureStructure()#

FeatureStructure(__namedParameters): Element

Defined in: ui/client/features/feature-catalog/components/FeatureStructure.tsx:19

The switch plus whichever of the two already-rendered views (Tree, Flow) is chosen. The choice itself lives here, not in the controller (CONTROLLER-001: controllers only compose and wire).

Props#

Prop Type Required Default Description
view StructureView Yes —
onChange (view: StructureView) => void Yes —
tree ReactNode Yes —
flow ReactNode Yes —
previewOn boolean Yes — -- "Preview beside": off by default (design 8's "preview is optional outside Pages/Components").
onTogglePreview () => void Yes —
previewView LivePreviewView Yes —

Returns#

Element