@sewdn/workflow-ui
v0.1.1
Published
The visual layer of the workflow packages: replaceable primitives on stock shadcn, tokens, and workflow components.
Readme
@sewdn/workflow-ui
The kit's stock UI components and the primitives seam (@sewdn/workflow-ui/primitives): every stock component is
replaceable by name through WorkflowPrimitives, and the other UI packages reach a component through usePrimitive.
Choice controls and labels
A Checkbox, RadioGroupItem or Switch is never a child of the Label primitive. A host may style Label as a
caption (upper case, small, tracked), and a choice's words must not turn into one. Render the control and its label as
siblings in a wrapper that carries the layout: the control with an id (useId where there is none), the label with
htmlFor. Give the label the gap as padding (pl-micro) so the whole row, text and gap, still toggles the control.
ConditionBuilder ("Niet") and the schema editor's "Beschikbaar in" list are the examples.
