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>
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
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 }
|
||||
Reference in New Issue
Block a user