Examples
실전 예제로 배우는 Vortex UI 활용법
개요
Vortex UI를 활용한 실제 프로젝트 예제를 통해 컴포넌트 조합, 패턴, 최적화 기법을 학습할 수 있습니다.
제품별 예제
각 제품(Foundation, iCignal, Cals)에 특화된 예제를 제공합니다.
Foundation 예제
Landing Page
모던 랜딩 페이지 구현 예제
import { Button } from "@vortex/ui-foundation";
import { Container } from "@/components/ui/container";
export default function LandingPage() {
return (
<Container size="xl">
<section className="py-20 text-center">
<h1 className="text-5xl font-bold mb-6">Build Faster with Vortex UI</h1>
<p className="text-xl text-muted-foreground mb-8">
A modern component library for React applications
</p>
<div className="flex gap-4 justify-center">
<Button size="lg">Get Started</Button>
<Button size="lg" variant="outline">
View Docs
</Button>
</div>
</section>
</Container>
);
}Form with API
폼 검증과 API 통합 예제
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import * as z from "zod";
const formSchema = z.object({
email: z.string().email(),
password: z.string().min(8),
});
export default function FormExample() {
const form = useForm({
resolver: zodResolver(formSchema),
});
const onSubmit = async (data) => {
const response = await fetch("/api/auth/login", {
method: "POST",
body: JSON.stringify(data),
});
};
return <form onSubmit={form.handleSubmit(onSubmit)}>...</form>;
}iCignal 예제
Dashboard
분석 대시보드 구현 예제
import { AnalyticsCard } from "@vortex/ui-icignal";
export default function Dashboard() {
return (
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<AnalyticsCard
title="Total Users"
value="12,345"
trend="+12%"
trendUp={true}
/>
<AnalyticsCard
title="Revenue"
value="$45,678"
trend="+8%"
trendUp={true}
/>
</div>
);
}Analytics Report
리포트 페이지 구현 예제
Cals 예제
Booking System
예약 시스템 구현 예제
import { BookingCard } from "@vortex/ui-cals";
export default function BookingSystem() {
return (
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<BookingCard title="Conference Room A" capacity={10} available={true} />
</div>
);
}Schedule Management
스케줄 관리 구현 예제
예제 카테고리
Layout Examples
- Landing Page
- Dashboard
- Admin Panel
Form Examples
- Form with API
- Multi-step Form
- Dynamic Form
Data Examples
- Analytics Report
- Data Table
- Charts
Business Examples
- Booking System
- Schedule Management
- E-commerce
다음 단계
Last updated on