Skip to content

Label

Label renders NaviusLabel, the headless primitive that owns For/htmlFor wiring and the double-click guard, and layers a fixed Tailwind class set on top (text size, weight, and a peer-disabled state for when it labels a disabled peer control).

Terminal window
navius add label --to ./src/MyApp --namespace MyApp.Ui
@using Zits.Ui.Components
<ZitsLabel For="terms">Accept terms and conditions</ZitsLabel>

Label is a single element with no part tree. For and every other NaviusLabel parameter pass through unchanged via Attributes. The styled wrapper adds no props of its own, only the base Tailwind class set.

Attributes on ZitsLabel merges with the base class set via Cn.Merge and forwards to NaviusLabel.

None beyond what NaviusLabel itself emits (documented in its own manifest); the styled class set targets no data-* attributes of its own beyond the standard peer-disabled CSS pseudo-state.