# Wheel Picker URL: /components/wheel-picker Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/wheel-picker.mdx An input component that allows scrolling multiple values vertically to select from one or more columns. ## Anatomy ![Anatomy image of Wheel Picker. Consists of Root, Column, Item, Item Label, Selection Indicator, and Scroll Fog.]() - **Root:** The top-level container that wraps the entire Wheel Picker. - **Column:** An area where a single list of values is scrolled vertically. - **Item:** Each value that can be selected within a Column. - **Item Label:** Single-line content of an Item. Provides styles for selected and disabled states. - **Selection Indicator:** Indicates the current selection position across all Columns. - **Scroll Fog:** Masks items at the top and bottom boundaries to fade them naturally. ### Scroll Fog Height ![Example showing Scroll Fog height increasing to 40% when displaying 5, 7, or 9 items in Root, then capped at 3 item heights]() Root height can be adjusted based on the use case. Scroll Fog expands to 40% of Root height but does not exceed 3 item heights. A minimum height of 5 items is recommended. Implementations supporting smaller heights should be restricted to not infringe on the central item area. The formula for Scroll Fog height is as follows: `min(Root Height × 40%, Item Height × 3)` ## Properties ### Columns ![Example of Wheel Picker configured with 1, 2, and 3 columns]() One or more Columns can be used. Each Column follows the width of the Item Label, and the Column group is positioned in the center of the Root. For typical use, 1 to 3 column combinations are provided. ### Size Wheel Picker is available in two sizes: Medium and Small. Medium is used for general purposes, while Small can be used efficiently in compact spaces. The default Root height for each Size Variant is a reference value showing 5 items, and the height can be adjusted to fit the desired display range in actual use. ![Size comparison of Medium and Small Wheel Picker when opened in Date Picker]() ### Items and Display Count ![Example showing item height of 44 and 5 items displayed on one screen]() The default item height is 44. By default, 5 items are displayed on one screen, using an odd number so the selection position appears in the center. ## State ### Wheel Picker State ![Enabled and Disabled states of Wheel Picker]() Wheel Picker provides Enabled and Disabled states. In the Disabled state, the current value is maintained and focus and value changes are prevented. ## Interaction ### Selection and Value Confirmation ![Example showing a selected Item moving to the center, scroll stopping, and then the value being confirmed]() When you tap a visible Item, that Item moves to the center. Items passing through the center during scrolling can be highlighted, but the value is confirmed only after the Item aligns and stops at the center. When you drag and release a Column, it snaps to the nearest Item. Tap selection should not accidentally occur immediately after dragging. ### List Boundaries and Loop ![Comparison of Wheel Picker with Loop disabled and enabled]() The default value for Loop is disabled. When disabled, scrolling stops at the first and last values. When enabled, the first value follows the last value. ## Guidelines ### Usage ![Example of exploring ordered values using Wheel Picker]() Use for selecting ordered values like dates, times, and quantities. Ideal for cases where you need to view and adjust the relationships between multiple values on one screen. ### Item Content Items should contain short, single-line text by default. Simple visual elements can be used, but buttons, links, input fields, and multi-line content should not be included. ### Choosing Other Components Choose a more appropriate input component based on the number and relationship of options, whether search is needed, and whether free input is allowed. | Component | Selection Criteria | | ------------------------------------------------------ | ------------------------------------------------------- | | **Wheel Picker** | Browse ordered values by scrolling | | **[Radio](/components/radio)** | Show all options when there are few independent choices | | **[Segmented Control](/components/segmented-control)** | Switch between 2–5 short, mutually exclusive options | | **[Select](/components/select)** | Select one from many items without search | | **[Text Field](/components/text-input)** | Directly input values not from a predefined list | ## Specification Component spec (JSON): /rootage/components/wheel-picker.json