# 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로 표시됩니다.
);
};
export default DialogResponsive;
```
[Dialog Design Guide](/components/dialog) · [Dialog and ResponsiveDialog React Documentation](/react/components/dialog)
## Navigation Experience
On screens with long content, fixed areas like filters or tabs help with navigation, but they also continue to take up small screen space and can hide the content that needs to be viewed. It's important to give space while users are reading and make them appear naturally when needed again.
### ScrollAutoHide
ScrollAutoHide hides and reveals fixed areas like filters, tabs, and auxiliary headers based on scroll direction. When scrolling down, it hides the area so you can focus on content, and when scrolling up, it shows it again by the distance moved. When scrolling ends, it uses Crispy'''s motion curve (easing) to completely hide or reveal the area.
## Preview
```tsx
"use client";
import { IconChevronDownFill } from "@karrotmarket/react-monochrome-icon";
import { Badge, Box, Flex, HStack, Icon, Text, VStack } from "@seed-design/react";
import { useRef } from "react";
import { ScrollAutoHide } from "seed-design/breeze/scroll-auto-hide/scroll-auto-hide";
import { Avatar } from "seed-design/ui/avatar";
import { Chip } from "seed-design/ui/chip";
import { IdentityPlaceholder } from "seed-design/ui/identity-placeholder";
import { TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs";
import { TagGroupItem, TagGroupRoot } from "seed-design/ui/tag-group";
type Article = {
author: string;
title: string;
content: string;
category: string;
date: string;
popular?: boolean;
};
const ARTICLES = [
{
author: "magna",
title: "독서 습관 만들기",
content: "하루 10페이지부터 시작하자. 취침 전 20분 독서는 수면의 질도 높여줘요.",
category: "라이프스타일",
date: "12월 4일",
popular: true,
},
{
author: "ullamco",
title: "알프스 하이킹 가이드",
content: "그린델발트에서 시작해 아이거 북벽을 감상하는 초보자용 코스를 소개해요.",
category: "여행",
date: "10월 15일",
},
{
author: "consectetur",
title: "커피 브루잉 팁",
content: "물 온도 92도, 중간 분쇄도와 3분의 추출 시간이 기본이에요.",
category: "음식",
date: "9월 25일",
},
{
author: "exercitation",
title: "실내 공기 정화 식물",
content: "관리하기 쉽고 공기 정화 능력이 뛰어난 식물을 모아봤어요.",
category: "라이프스타일",
date: "8월 7일",
},
{
author: "elit",
title: "아침 루틴의 힘",
content: "따뜻한 물 한 잔과 가벼운 스트레칭으로 하루를 시작해보세요.",
category: "라이프스타일",
date: "7월 28일",
popular: true,
},
] satisfies Article[];
const FILTERS = ["카테고리", "동네", "작성자", "작성 시간"];
export default function ScrollAutoHidePreview() {
const scrollContainerRef = useRef(null);
return (
Demo
추천
구독
{FILTERS.map((filter) => (
{filter}
} />
))}
{ARTICLES.map((article) => (
} size="20" />
{article.author}
{article.title}
{article.content}
{article.popular && (
인기
)}
))}
);
}
```
It supports both touch and trackpad scrolling and handles Safari'''s elastic scroll at top and bottom to prevent unintended exposure. When navigating to a hidden area with keyboard, it shows immediately. For users with reduced motion enabled on their device, automatic hiding is also disabled.
ScrollAutoHide is provided as a Breeze snippet. You can add it to your project with the command below.
- npm: npx @seed-design/cli@latest add breeze:scroll-auto-hide
- pnpm: pnpm dlx @seed-design/cli@latest add breeze:scroll-auto-hide
- yarn: yarn dlx @seed-design/cli@latest add breeze:scroll-auto-hide
- bun: bun x @seed-design/cli@latest add breeze:scroll-auto-hide
[Breeze Documentation](/breeze/components/scroll-auto-hide)