프리뷰 또는 이전 버전의 문서를 보고 있습니다.seed-design.io 방문
우리는 왜 디자인 엔지니어를 찾게 됐을까
Skip to Content
React

Pagination

여러 페이지로 나뉜 목록에서 원하는 페이지로 이동할 때 사용하는 컴포넌트입니다.

사용 가능 버전@seed-design/[email protected], @seed-design/[email protected]

Installation

npx @seed-design/cli@latest add ui:pagination

Usage

import { Pagination } from "seed-design/ui/pagination";

totalPages는 0 이상의 전체 페이지 수입니다. 페이지가 0개 또는 1개면 Pagination을 표시하지 않습니다.

화면 너비가 480px 이상이면 이전·다음 버튼과 생략 표시를 포함해 최대 9개 슬롯을, 그보다 좁으면 최대 7개 슬롯을 표시합니다. 작은 화면의 페이지 영역은 5개 슬롯을 유지하며, 현재 페이지의 앞뒤 페이지를 직접 선택할 수 있도록 첫 페이지와 마지막 페이지를 필요한 구간에서만 표시합니다. 첫 페이지에서는 이전 버튼을, 마지막 페이지에서는 다음 버튼을 숨기되 각 영역의 너비는 유지합니다. 따라서 첫 페이지와 마지막 페이지 주변에서도 나머지 버튼의 위치가 바뀌지 않습니다.

여러 페이지로 나뉜 일반 목록이나 검색 결과의 아래쪽 중앙에 배치하세요. 데이터 표에서 페이지당 행 수와 표시 범위를 함께 제어해야 한다면 Table Pagination을 사용하세요.

Localization

스니펫 파일 상단의 numberFormatter와 paginationText를 앱의 언어에 맞게 수정하세요. 숫자 형식뿐 아니라 루트, 이전·다음 버튼, 개별 페이지의 접근성 이름도 이곳에서 바꿀 수 있습니다.

Props

Prop

Type

page?number | undefined

제어할 현재 페이지입니다. 페이지 번호는 1부터 시작합니다.

defaultPage?number | undefined

비제어 방식으로 사용할 때의 초기 페이지입니다.

onPageChange?((page: number, details: PaginationChangeDetails) => void) | undefined

페이지가 바뀔 때 호출됩니다.

totalPagesnumber

전체 페이지 수입니다.

disabled?boolean | undefined

모든 페이지 이동을 비활성화합니다.

Default

false

margin?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Margin on all four sides.

Cannot be combined with any bleed* prop.

m?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for margin.

Cannot be combined with any bleed* prop.

marginX?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Horizontal margin (left + right).

Cannot be combined with any bleed* prop.

mx?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for marginX.

Cannot be combined with any bleed* prop.

marginY?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Vertical margin (top + bottom).

Cannot be combined with any bleed* prop.

my?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for marginY.

Cannot be combined with any bleed* prop.

marginTop?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Top margin.

Cannot be combined with any bleed* prop.

mt?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for marginTop.

Cannot be combined with any bleed* prop.

marginRight?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Right margin.

Cannot be combined with any bleed* prop.

mr?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for marginRight.

Cannot be combined with any bleed* prop.

marginBottom?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Bottom margin.

Cannot be combined with any bleed* prop.

mb?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for marginBottom.

Cannot be combined with any bleed* prop.

marginLeft?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Left margin.

Cannot be combined with any bleed* prop.

ml?ResponsiveValue<"auto" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for marginLeft.

Cannot be combined with any bleed* prop.

bleed?ResponsiveValue<"asPadding" | "safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Negative margin on all four sides to extend the element outside its parent. If set to "asPadding", it will use the padding value in the same direction. If set to "safeArea", it will use the safe area inset in the same direction.

Cannot be combined with any margin* prop.

bleedX?ResponsiveValue<"asPadding" | "safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Negative x-axis margin to extend the element outside its parent. If set to "asPadding", it will use the padding value in the same direction. If set to "safeArea", it will use the safe area inset in the same direction.

Cannot be combined with any margin* prop.

bleedY?ResponsiveValue<"asPadding" | "safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Negative y-axis margin to extend the element outside its parent. If set to "asPadding", it will use the padding value in the same direction. If set to "safeArea", it will use the safe area inset in the same direction.

Cannot be combined with any margin* prop.

bleedTop?ResponsiveValue<"asPadding" | "safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Negative top margin to extend the element outside its parent. If set to "asPadding", it will use the padding value in the same direction. If set to "safeArea", it will use the safe area inset in the same direction.

Cannot be combined with any margin* prop.

bleedRight?ResponsiveValue<"asPadding" | "safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Negative right margin to extend the element outside its parent. If set to "asPadding", it will use the padding value in the same direction. If set to "safeArea", it will use the safe area inset in the same direction.

Cannot be combined with any margin* prop.

bleedBottom?ResponsiveValue<"asPadding" | "safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Negative bottom margin to extend the element outside its parent. If set to "asPadding", it will use the padding value in the same direction. If set to "safeArea", it will use the safe area inset in the same direction.

Cannot be combined with any margin* prop.

bleedLeft?ResponsiveValue<"asPadding" | "safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Negative left margin to extend the element outside its parent. If set to "asPadding", it will use the padding value in the same direction. If set to "safeArea", it will use the safe area inset in the same direction.

Cannot be combined with any margin* prop.

bg?ScopedColorBanner | ScopedColorBg | ScopedColorPalette | (string & {}) | undefined

Shorthand for background.

background?ScopedColorBanner | ScopedColorBg | ScopedColorPalette | (string & {}) | undefined
bgGradient?"fadeMask" | "glowMagic" | "glowMagicPressed" | "highlightMagic" | "highlightMagicPressed" | "shimmerMagic" | "shimmerNeutral" | undefined

Shorthand for backgroundGradient.

backgroundGradient?"fadeMask" | "glowMagic" | "glowMagicPressed" | "highlightMagic" | "highlightMagicPressed" | "shimmerMagic" | "shimmerNeutral" | undefined
bgGradientDirection?"to bottom" | "to bottom left" | "to bottom right" | "to left" | "to right" | "to top" | "to top left" | "to top right" | (string & {}) | undefined

Shorthand for backgroundGradientDirection. e.g. 43deg

backgroundGradientDirection?"to bottom" | "to bottom left" | "to bottom right" | "to left" | "to right" | "to top" | "to top left" | "to top right" | (string & {}) | undefined

e.g. 43deg

color?ScopedColorFg | ScopedColorPalette | (string & {}) | undefined
borderColor?ScopedColorPalette | ScopedColorStroke | (string & {}) | undefined
borderWidth?0 | 1 | (string & {}) | undefined
borderTopWidth?0 | 1 | (string & {}) | undefined
borderRightWidth?0 | 1 | (string & {}) | undefined
borderBottomWidth?0 | 1 | (string & {}) | undefined
borderLeftWidth?0 | 1 | (string & {}) | undefined
borderRadius?"full" | "r0_5" | "r1" | "r1_5" | "r2" | "r2_5" | "r3" | "r3_5" | "r4" | "r5" | "r6" | 0 | (string & {}) | undefined
borderTopLeftRadius?"full" | "r0_5" | "r1" | "r1_5" | "r2" | "r2_5" | "r3" | "r3_5" | "r4" | "r5" | "r6" | 0 | (string & {}) | undefined
borderTopRightRadius?"full" | "r0_5" | "r1" | "r1_5" | "r2" | "r2_5" | "r3" | "r3_5" | "r4" | "r5" | "r6" | 0 | (string & {}) | undefined
borderBottomRightRadius?"full" | "r0_5" | "r1" | "r1_5" | "r2" | "r2_5" | "r3" | "r3_5" | "r4" | "r5" | "r6" | 0 | (string & {}) | undefined
borderBottomLeftRadius?"full" | "r0_5" | "r1" | "r1_5" | "r2" | "r2_5" | "r3" | "r3_5" | "r4" | "r5" | "r6" | 0 | (string & {}) | undefined
boxShadow?"s1" | "s2" | "s3" | (string & {}) | undefined
width?ResponsiveValue<"full" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | Dimension | (string & {})> | undefined
minWidth?ResponsiveValue<"full" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | Dimension | (string & {})> | undefined
maxWidth?ResponsiveValue<"full" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | Dimension | (string & {})> | undefined
height?ResponsiveValue<"full" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | Dimension | (string & {})> | undefined
minHeight?ResponsiveValue<"full" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | Dimension | (string & {})> | undefined
maxHeight?ResponsiveValue<"full" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | Dimension | (string & {})> | undefined
top?0 | (string & {}) | undefined
left?0 | (string & {}) | undefined
right?0 | (string & {}) | undefined
bottom?0 | (string & {}) | undefined
padding?ResponsiveValue<"spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined
p?ResponsiveValue<"spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for padding.

paddingX?ResponsiveValue<"spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined
px?ResponsiveValue<"spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for paddingX.

paddingY?ResponsiveValue<"spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined
py?ResponsiveValue<"spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for paddingY.

paddingTop?ResponsiveValue<"safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined
pt?ResponsiveValue<"safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for paddingTop.

paddingRight?ResponsiveValue<"safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined
pr?ResponsiveValue<"safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for paddingRight.

paddingBottom?ResponsiveValue<"safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined
pb?ResponsiveValue<"safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for paddingBottom.

paddingLeft?ResponsiveValue<"safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined
pl?ResponsiveValue<"safeArea" | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined

Shorthand for paddingLeft.

position?"absolute" | "fixed" | "relative" | "sticky" | undefined
overflowX?"auto" | "hidden" | "scroll" | "visible" | undefined
overflowY?"auto" | "hidden" | "scroll" | "visible" | undefined
zIndex?number | (string & {}) | undefined
flexGrow?0 | 1 | true | (number & {}) | undefined

If true, flex-grow will be set to 1.

flexShrink?0 | true | (number & {}) | undefined

If true, flex-shrink will be set to 1.

flexWrap?"nowrap" | "wrap" | "wrap-reverse" | true | undefined

If true, flex-wrap will be set to wrap.

justifyContent?"center" | "flex-end" | "flex-start" | "space-around" | "space-between" | undefined
justifySelf?"center" | "end" | "start" | "stretch" | undefined

In flexbox layout, this property is ignored.

alignItems?"center" | "flex-end" | "flex-start" | "stretch" | undefined
alignContent?"center" | "flex-end" | "flex-start" | "stretch" | undefined
alignSelf?"center" | "flex-end" | "flex-start" | "stretch" | undefined
gap?ResponsiveValue<"spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.betweenText" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | 0 | Dimension | (string & {})> | undefined
gridColumn?string | undefined
gridRow?string | undefined
unstable_transform?string | undefined
_active?{ bg?: ScopedColorBg | ScopedColorPalette | (string & {}); background?: ScopedColorBg | ScopedColorPalette | (string & {}); } | undefined
hideFrom?BreakpointThreshold | undefined
display?ResponsiveValue<"flex" | "none"> | undefined

Default

"flex"

direction?ResponsiveValue<"column" | "column-reverse" | "row" | "row-reverse"> | undefined

Shorthand for flexDirection.

wrap?"nowrap" | "wrap" | "wrap-reverse" | true | undefined

Shorthand for flexWrap.

align?"center" | "flex-end" | "flex-start" | "stretch" | undefined

Shorthand for alignItems.

justify?"center" | "flex-end" | "flex-start" | "space-around" | "space-between" | undefined

Shorthand for justifyContent.

grow?0 | 1 | true | (number & {}) | undefined

Shorthand for flexGrow.

shrink?0 | true | (number & {}) | undefined

Shorthand for flexShrink.

Examples

Controlled

page와 onPageChange를 사용하면 페이지 상태를 외부에서 제어할 수 있습니다. 변경된 목록의 로딩, 포커스 이동, 결과 안내는 Pagination이 아니라 목록 영역에서 처리하세요.

현재 페이지: 5

onPageChange Details

onPageChange의 두 번째 인자는 변경 원인을 나타내는 reason과 변경 전 페이지인 previousPage를 제공합니다.

reason발생 조건
page-item페이지 번호를 선택했을 때
previous이전 페이지 버튼을 선택했을 때
next다음 페이지 버튼을 선택했을 때
constraint외부에서 전달한 페이지가 유효 범위를 벗어나 보정됐을 때

외부 페이지가 범위를 벗어나면 보정된 페이지를 먼저 렌더링하고, 이후 constraint 변경을 한 번 알립니다.

Accessibility

루트는 nav로 렌더링되며 기본 접근성 이름은 페이지 탐색입니다. 같은 화면에 Pagination이 여러 개 있으면 aria-label이나 aria-labelledby로 대상을 구분하세요.

현재 페이지 버튼에는 aria-current="page"가 적용됩니다. 키보드 사용자는 Tab으로 버튼 사이를 이동하고 Enter 또는 Space로 페이지를 선택할 수 있습니다.

Last updated on 2026. 8. 25.