Simal UI
Components

InlineField

The dense-grid sibling of Field: same 48px height and label treatment, but it supports a read-only mode and a monospace value, so it doubles as a display row.

Web-only — inline-field.web.tsx has no native counterpart.

It shares a row with SelectField in address and contact grids, which is why the two agree on height and on the 14px gap below the label.

Import

import { InlineField } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
label"Trading name"Sits above the box and stays visible.
placeholder"Simal"Shown while empty. In readonly mode it renders as an em dash fallback instead.
readonlybooleanfalseRenders the value as text in the same box rather than an input. Use for values a user may see but not change — it keeps grid alignment that a plain label would break.
monobooleanfalseRenders the value in the monospace face. For references, IDs and phone numbers where digit alignment matters.
numericbooleanfalseStrips non-digits on change and switches to a number pad.
errorAny non-empty string turns the border red and renders the message below.
disabledbooleanfalseDims the box and blocks pointer events entirely.
maxLengthHard cap on input length, enforced by the input itself.
auxSmall trailing text inside the box, right-aligned — a unit or a remaining-character count.
fullWidthbooleanfalseAdds flex-1 so the field fills its row. Off by default so it can sit at natural width.
value""Controlled. Pair with onChangeText unless readonly.
onChangeTextOmit it to get a read-only box without setting readonly explicitly.

Examples

Read Only

readonly keeps the box, so a display value still lines up with the editable field beside it.

Monospace

Monospace is for values read digit by digit, where a proportional face makes comparison harder.

States

On this page