Next.js 전용 GridCardList입니다. Item과 MasonryItem이 GlobalLink를 내장하여 href prop만으로 페이지 전환 로딩 연동이 자동으로 처리됩니다.
@coldsurfers/ocean-road/next에서 import합니다. 기본 API는 GridCardList (Extensions)와 동일하며, Item과 MasonryItem의 동작만 다릅니다.
@coldsurfers/ocean-road (extension) |
@coldsurfers/ocean-road/next |
|
|---|---|---|
Item |
href prop 없음 |
href prop으로 GlobalLink 자동 적용 |
MasonryItem |
href prop 없음 |
href prop으로 GlobalLink 자동 적용 |
| 라우팅 | 직접 구현 | GlobalLink를 통해 RouteLoading과 자동 연동 |
| prop | 타입 | 설명 |
|---|---|---|
href |
string |
지정하면 GlobalLink로 래핑하여 클릭 시 해당 경로로 이동합니다. 미지정 시 onClick만 동작합니다. |
onClick |
() => void |
클릭 핸들러 |