# Making Selection, Confirmation, and Navigation Easier URL: /updates/pickers-dialog-select Source: https://github.com/daangn/seed-design/blob/dev/docs/content/updates/pickers-dialog-select.mdx From Quantity Picker to ScrollAutoHide, introducing new components that make repeated interactions in products more consistent. In Carrot's various services, moments where users select something, confirm decisions, and navigate screens appear repeatedly. Even familiar interactions require us to consider selection ranges, exceptional states, screen sizes, and accessibility when applying them to actual products. To create a more consistent experience rather than solving the same problem separately for each service, we added six new components to Crispy. In this article, I will introduce them one by one according to the flow of selecting, confirming, and navigating. ## Selection Experience Experiences of selecting values from quantities, dates, times, and lists are used frequently throughout services. The newly added components meet the conditions needed for each product while helping users select in a familiar way. ### Quantity Picker When deciding on the quantity of items to add to cart or the number of reservations, we typically use `+` and `-` buttons. When minimum/maximum quantity, item deletion, and loading state are added, there are many conditions to manage for each screen. Quantity Picker handles these conditions in a consistent way. You can set minimum/maximum ranges and either manage the value directly in the product or entrust it to Quantity Picker. You can change the arrangement of value text and buttons and display loading state. You can submit the selected value as a native form through a hidden input. It is available from `@seed-design/react@2.1.0` and `@seed-design/css@2.3.0`. ## Preview ```tsx import { QuantityPicker } from "seed-design/ui/quantity-picker"; export default function QuantityPickerPreview() { return ; } ``` At the minimum quantity, you can change the decrease button to a delete button. Users can delete an item from the same location and restore it if needed. ```tsx import { Text, VStack } from "@seed-design/react"; import { useState } from "react"; import { ActionButton } from "seed-design/ui/action-button"; import { QuantityPicker } from "seed-design/ui/quantity-picker"; export default function QuantityPickerRemovable() { const [removed, setRemoved] = useState(false); if (removed) { return ( 상품을 삭제했습니다. setRemoved(false)}> 되돌리기 ); } return ( setRemoved(true)} /> 최소 수량에서 Decrement 버튼이 Remove 버튼으로 전환됩니다. ); } ``` [Quantity Picker Design Guide](/components/quantity-picker) · [React Documentation](/react/components/quantity-picker) ### Time Picker The way to select time varies depending on the user's language/region settings and the product's purpose. You must decide whether to show AM/PM first, in what order to place hours and minutes, and what minute intervals to allow for selection. Time Picker adjusts the order and labels of AM/PM and hour/minute columns according to the user's language/region settings (locale). You can set selection intervals with `minuteStep` or disable unnecessary columns, and connect it with values managed in the product or JavaScript `Date` objects. It is available from `@seed-design/react@2.2.0` and `@seed-design/css@2.4.0`. ## Preview ```tsx import { Box, TimePicker } from "@seed-design/react"; export default function TimePickerPreview() { return ( ); } ``` You can place it directly on the screen, but for smaller screens, the flow of selecting and confirming time within a Bottom Sheet may be more natural. You can choose both methods based on your product'''s screen layout. ```tsx "use client"; import { Portal, TimePicker, type TimePickerValue } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; import { BottomSheetBody, BottomSheetContent, BottomSheetFooter, BottomSheetRoot, } from "seed-design/ui/bottom-sheet"; import { FieldButton, FieldButtonValue } from "seed-design/ui/field-button"; import * as React from "react"; function formatTime({ hour, minute }: TimePickerValue) { const period = hour < 12 ? "오전" : "오후"; const displayHour = hour % 12 || 12; return `${period} ${displayHour}:${String(minute).padStart(2, "0")}`; } export default function TimePickerBottomSheet() { const [open, setOpen] = React.useState(false); const [value, setValue] = React.useState({ hour: 10, minute: 30 }); const [draft, setDraft] = React.useState(value); const handleOpenChange = (nextOpen: boolean) => { if (nextOpen) setDraft(value); setOpen(nextOpen); }; return ( handleOpenChange(true), }} > {formatTime(value)} { setValue(draft); setOpen(false); }} > 완료 ); } ``` [Time Picker Design Guide](/components/time-picker) · [React Documentation](/react/components/time-picker) ### Date Picker The experience of selecting a date is not completed by simply showing a calendar. Sometimes you select only one date, but for travel or reservations, you need to select a range, and some dates may not be selectable or may need to show price and reservation status together. Date Picker provides ways to select a single date, date range, and multiple dates. You can choose a format that fits your screen and navigation context from one month, two months, one week, or continuous scroll layouts, and combine conditions that restrict selection such as minimum/maximum periods or sold-out dates. It is available from `@seed-design/react@2.2.0` and `@seed-design/css@2.4.0`. ## Preview ```tsx import { Box, DatePicker } from "@seed-design/react"; export default function DatePickerPreview() { return ( ); } ``` You can add necessary information for selection to date cells, such as price or reservation status. When used with Time Picker, you can also create a flow where you select a date and then continue to select the time. ```tsx "use client"; import { Box, Text, TwoMonthDatePicker, VStack, excludeDates, rangeDayCountAtLeast, rangeDayCountAtMost, type DatePickerDate, type DatePickerRangeValue, } from "@seed-design/react"; import * as React from "react"; const bookedDateKeys = new Set(["2026-07-18", "2026-07-19", "2026-07-25"]); function toDateKey(date: DatePickerDate) { return `${date.year}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`; } const constraints = [ rangeDayCountAtLeast(1), rangeDayCountAtMost(14), excludeDates((date) => bookedDateKeys.has(toDateKey(date))), ]; export default function DatePickerReservation() { const [value, setValue] = React.useState({ start: { year: 2026, month: 7, day: 10 }, }); return ( 체크인 {toDateKey(value.start)} {value.end ? ` · 체크아웃 ${toDateKey(value.end)}` : " · 체크아웃을 선택하세요"} 선택 구간은 체크인·체크아웃을 포함해 1~14일이어야 합니다. 예약 완료일(7월 18일·19일·25일)이 포함된 구간은 선택할 수 없습니다. ); } ``` [Date Picker Design Guide](/components/date-picker) · [React Documentation](/react/components/date-picker) ### Select Select, which selects one item from a predefined list, also requires different features depending on the product. You may need to select multiple values together, group items, add descriptions and icons, or connect selected values to form validation. Select allows you to select one or multiple values and display the selected values in the format needed for your product. You can group items, add descriptions, icons, and custom labels, and set scrolling for long lists and popover position, size, and disabled state. It is available from `@seed-design/react@2.1.0` and `@seed-design/css@2.3.0`. ## Preview ```tsx import { Box } from "@seed-design/react"; import { SelectContent, SelectGroup, SelectItem, SelectRoot, SelectTrigger, } from "seed-design/ui/select"; export default function SelectPreview() { return ( ); } ``` It can be connected with Field and native forms as well as React Hook Form. Since you can manage the open state and the reason for value changes in the product, you can configure behaviors finely to match the validation flow. ```tsx import { HStack, VStack } from "@seed-design/react"; import { useCallback, type FormEvent } from "react"; import { useController, useForm } from "react-hook-form"; import { ActionButton } from "seed-design/ui/action-button"; import { SelectContent, SelectGroup, SelectItem, SelectRoot, SelectTrigger, } from "seed-design/ui/select"; interface FormValues { fruit: string[]; } export default function SelectReactHookForm() { const { handleSubmit, reset, control } = useForm({ reValidateMode: "onSubmit", defaultValues: { fruit: [], }, }); // SelectRoot is not a forwardRef component, so pass only the field props it // accepts instead of spreading `...field` (which carries a `ref`). const { field: { value, onChange, name }, fieldState, } = useController({ name: "fruit", control, rules: { validate: (value) => value.length > 0 || "과일을 선택해주세요", }, }); const onValid = useCallback( (data: FormValues) => window.alert(JSON.stringify(data, null, 2)), [], ); const onReset = useCallback( (event: FormEvent) => { event.preventDefault(); reset(); }, [reset], ); return ( 초기화 제출 ); } ``` [Select Design Guide](/components/select) · [React Documentation](/react/components/select) ## Confirmation Experience There are moments when you need to show important information to users or get confirmation for decisions. At these times, you not only need to ensure the content is readable, but also control closing behavior to prevent loss of entered information and provide a form that fits the screen size. ### Dialog Dialog places a title, body, and footer in the center of the screen to help users focus on important information and their next action. It can contain not only simple confirmation messages but also forms and scrollable content, and you can adjust the size, close button, body height and padding, and footer action layout according to the content. It is available from `@seed-design/react@2.1.0` and `@seed-design/css@2.3.0`. ## Preview ```tsx import { HStack, Text } from "@seed-design/react"; import { DialogAction, DialogBody, DialogContent, DialogFooter, DialogRoot, DialogTrigger, } from "seed-design/ui/dialog"; import { ActionButton } from "seed-design/ui/action-button"; const DialogPreview = () => { return ( Open Dialog The body can hold content for users to review or an extra input form. Cancel OK ); }; export default DialogPreview; ``` You can manage the open state directly in the product and use Portal to determine where the Dialog will be rendered. You can protect the user's entered content by setting it to not close when clicking outside or pressing ESC. You can also show a confirmation Dialog one more time depending on the reason for closing. When using ResponsiveDialog, the same content is shown as a Dialog on wide screens and as a Bottom Sheet on small screens. You can provide a confirmation experience that fits each environment without implementing two different UIs for each screen. ```tsx import { HStack, Text, useResponsiveDialogContext } from "@seed-design/react"; import { forwardRef } from "react"; import { ActionButton } from "seed-design/ui/action-button"; import { ResponsiveDialogAction, ResponsiveDialogBody, ResponsiveDialogContent, ResponsiveDialogFooter, ResponsiveDialogRoot, ResponsiveDialogTrigger, type ResponsiveDialogFooterProps, } from "seed-design/ui/responsive-dialog"; const Footer = forwardRef((props, ref) => { const { shouldUseBottomSheet } = useResponsiveDialogContext(); return ( 취소 확인 ); }); const DialogResponsive = () => { return ( Open md 이상에서는 화면 중앙의 Dialog로, sm 이하에서는 화면 하단에서 슬라이드되는 Bottom Sheet로 표시됩니다.