/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ /** * One axis row inside the Geometry edit card's position section. * X / Y / Z labelled input bracketed by ±step nudge buttons. * Purely presentational — caller wires the input value, change * handler, and the two nudge callbacks. */ import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; interface AxisRowProps { label: string; value: string; onChange: (next: string) => void; onNudgeMinus: () => void; onNudgePlus: () => void; } export function GeometryAxisRow({ label, value, onChange, onNudgeMinus, onNudgePlus }: AxisRowProps) { return (
{label} onChange(e.target.value)} className="h-6 text-xs font-mono px-1 flex-1 border-purple-200 dark:border-purple-800/60 bg-white dark:bg-zinc-950" step="any" />
); }