Skip to main content

Function: StringAtom()

StringAtom<A, InputProps>(props): Element

Defined in: lib/state-management/StringAtom.tsx:38

A component that renders a string input field bound to a Jotai atom. Supports different display modes (input, sheet, report) and handles various value types.

Type Parameters

A

A extends WritableAtom<any, any, any, A>

InputProps

InputProps extends TextInputProps & RefAttributes<TextInput, InputProps>

Parameters

props

StringAtomProps<A, InputProps>

The component props

Returns

Element

A string input component with label and optional unit