Type Alias: StringAtomProps<A, InputProps>
StringAtomProps<
A,InputProps> =object&InputLabelProps&InputProps
Defined in: lib/state-management/StringAtom.tsx:13
Props for the StringAtom component. Extends InputLabelProps and InputProps with additional string-specific properties.
Type declaration
atom
atom:
A
The writable atom to bind to
clearDefault?
optionalclearDefault:boolean
If true, clears the value if it matches GOALD_DEFAULT_STRING
inputClassName?
optionalinputClassName:string
Additional CSS classes for the input
placeholder?
optionalplaceholder:string
The placeholder text for the input
placeholderRaw?
optionalplaceholderRaw:boolean
Whether to use raw (untranslated) placeholder text
unit?
optionalunit:string
Text to display after the value (not translated)
Type Parameters
A
A extends WritableAtom<any | Promise<any>, any, any>
InputProps
InputProps extends React.ComponentProps<typeof Input>