CoordinateInput
X/Y position pair.
Loading…
X/Y position pair.
Loading…
X/Y position pairs — anchor points, crop origin, transform offsets.
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Field label. |
| x | number | — | X coordinate. |
| y | number | — | Y coordinate. |
| onChange | ({ x, y }) => void | — | Called when either axis changes. |
| min | number | -9999 | Minimum value per axis. |
| max | number | 9999 | Maximum value per axis. |
| step | number | 1 | Step increment. |
| className | string | — | Optional CSS class. |
Also copy lib/utils.ts (cn helper):