Files
fn-design-system/components/number_input.tsx
T
Egutierrez 5a824c2eee initial: mirror of @fn_library from fn_registry
75 components + DESIGN_SYSTEM.md + sync script.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 19:06:49 +02:00

49 lines
820 B
TypeScript

import { NumberInput } from '@mantine/core'
interface FnNumberInputProps {
value?: number | string
onChange?: (value: number | string) => void
min?: number
max?: number
step?: number
label?: string
description?: string
error?: string
placeholder?: string
prefix?: string
suffix?: string
}
function FnNumberInput({
value,
onChange,
min,
max,
step,
label,
description,
error,
placeholder,
prefix,
suffix,
}: FnNumberInputProps) {
return (
<NumberInput
value={value}
onChange={onChange}
min={min}
max={max}
step={step}
label={label}
description={description}
error={error}
placeholder={placeholder}
prefix={prefix}
suffix={suffix}
/>
)
}
export { FnNumberInput }
export type { FnNumberInputProps }