Skip to main content

Function: resolveNativeAttrs()

resolveNativeAttrs(field): Record<string, unknown>

Defined in: packages/core/src/resolve-native-attrs.ts:29

Extract DOM-valid native attributes from a field's props.

Only keys listed in NATIVE_INPUT_ATTRS are included; internal props (e.g. _isSet) and component-specific props are silently ignored. Null and undefined values are skipped so the result only contains meaningful attrs.

Parameters

field

FormField

Returns

Record<string, unknown>