From e7c69ea6f7358e78acad36eca99c96eeeed096ce Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Tue, 10 Mar 2026 16:55:36 +0900 Subject: write app plus touchup --- src/components/SizeSelector.tsx | 81 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 src/components/SizeSelector.tsx (limited to 'src/components/SizeSelector.tsx') diff --git a/src/components/SizeSelector.tsx b/src/components/SizeSelector.tsx new file mode 100644 index 0000000..cb4baef --- /dev/null +++ b/src/components/SizeSelector.tsx @@ -0,0 +1,81 @@ +/** + * SizeSelector.tsx + * + * A reusable pair of for choosing a rim or tire size. + * + * Behaviour: + * - Selecting a dropdown option fills the text input with its diameter_mm. + * - Typing a number in the text input auto-selects the first matching + * dropdown option, or falls back to "Custom" if no match exists. + * - Choosing "Custom" in the dropdown does nothing to the text input. + */ + +import type { SizeOption } from "../types"; + +/** Sentinel value used as the