Skip to Content
FoundationsCalsBreakpoints (반응형 브레이크포인트)

Breakpoints (반응형 브레이크포인트)

Cals의 반응형 브레이크포인트는 Foundation과 완전히 동일합니다.

Foundation 상속

Cals는 Tailwind CSS 기본 브레이크포인트를 사용합니다.

Breakpoint Scale

BreakpointMin Width기기Tailwind Prefix
xs0pxMobile (기본)(prefix 없음)
sm640pxLarge Mobilesm:
md768pxTabletmd:
lg1024pxDesktoplg:
xl1280pxLarge Desktopxl:
2xl1536pxExtra Large Desktop2xl:

실전 예제 - Booking Calendar

import { Button, Badge } from "@vortex/ui-cals"; export default function BookingCalendar() { return ( <section className="py-2xl px-md"> <div className="max-w-screen-xl mx-auto"> <h2 className="text-2xl md:text-3xl font-bold mb-xl">예약 현황</h2> <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-md"> <div className="p-md bg-white border rounded-lg"> <Badge variant="booking-available">예약 가능</Badge> <p className="text-lg font-semibold mt-sm">48건</p> </div> <div className="p-md bg-white border rounded-lg"> <Badge variant="booking-pending">예약 대기</Badge> <p className="text-lg font-semibold mt-sm">12건</p> </div> <div className="p-md bg-white border rounded-lg"> <Badge variant="booking-confirmed">예약 확정</Badge> <p className="text-lg font-semibold mt-sm">35건</p> </div> <div className="p-md bg-white border rounded-lg"> <Badge variant="booking-completed">예약 완료</Badge> <p className="text-lg font-semibold mt-sm">89건</p> </div> </div> </div> </section> ); }

다음 단계

Last updated on