Back to Vendure

AffixedInput

docs/docs/reference/dashboard/form-components/affixed-input.mdx

3.7.0571 B
Original Source
<GenerationInfo sourceFile="packages/dashboard/src/lib/components/data-input/affixed-input.tsx" sourceLine="31" packageName="@vendure/dashboard" />

A component for displaying an input with a prefix and/or a suffix.

Example

tsx
<AffixedInput
    {...field}
    type="number"
    suffix="%"
    value={field.value}
    onChange={e => field.onChange(e.target.valueAsNumber)}
/>
ts
function AffixedInput(props: Readonly<AffixedInputProps>): void

Parameters

props

<MemberInfo kind="parameter" type={Readonly<AffixedInputProps>} />