// Copyright: © 2026 TWWIM UG. All rights reserved. (www.twwim.com) /** * NumberInput — labelled integer input with bounded validation styling. * * @layer Presentation */ interface NumberInputProps { label: string; help?: string; min: number; max: number; value: number; onChange: (v: number) => void; } export function NumberInput({ label, help, min, max, value, onChange, }: NumberInputProps) { const invalid = !Number.isInteger(value) || value < min || value > max; return (
{help}
}