View-Only#
@palmyralabs/rt-forms-mantine · form/view/ — read-only display widgets that participate in the form contract but never accept input. Drop them into a PalmyraViewForm (or mix them into an editable form as a label-style row) to render the hydrated value inline.
Every view in this folder follows the same shape:
- Reads its value through the same
useFieldManager(attribute)that the editable widgets use — so it seesPalmyraForm’s hydrated data without any extra wiring. - Renders plain
<div>s inside aFieldDecorator— no Mantine input primitive is involved. - Resolves its CSS class via a shared
getVariantClassName(variant, label)helper ('standard'/'outlined'/'filled'). - Shows
"--"when the value is empty or missing (exception:MantineINRViewrenders0/ an empty numeric block).
| Page | Role |
|---|---|
| MantineTextView | Plain text display with optional preformatted mode |
| MantineDateView | Date formatted from serverPattern → displayPattern via dayjs |
| MantineOptionsView | Resolves an option key to its label from a keyed options map |
| MantineLookupView | Reads a label attribute from a referenced object (FK display) |
| MantineINRView | Indian Rupee / percentage / number formatter with digit↔words toggle |
Visibility note: every view gates rendering on
mutateOptions.visible— the flag is truthy when the field should be hidden. Keep that in mind if you drive visibility from a form-manager hook.