Skip to content
프로젝트

소개

현대 웹 애플리케이션을 위한 SF 테마 컴포넌트와 미래지향적 디자인 요소 모음입니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Cosmic UI

hero

Sci-fi themed React component library and docs site, ported from the original Vite + React SPA to Astro (static output, React islands for interactive parts).

Dev

npm install
npm run dev

Build

npm run build
npm run preview

Structure

  • src/components/ui/ — the component library itself (Button, Dialog, Menu, Combobox, Toast, Tabs, Accordion, Alert, Checkbox, RadioGroup, Switch, Input, Textarea, Chart, Frame). Mostly thin wrappers around @zag-js/* state machines plus the custom Frame SVG decoration system.
  • src/components/docs/ — shared doc-page building blocks (Wrapper, Title, Preview tabs, PreviewCode, InstallPackage, TOC Menu).
  • src/components/pages/ — one file per route's actual content (near-1:1 port of the old page's content), mounted as a React island.
  • src/components/SiteChrome.tsx — header nav + mobile sidebar drawer, global across every page via BaseLayout.astro.
  • src/layouts/BaseLayout.astro / DocsLayout.astro — page shells.
  • src/pages/ — thin Astro route files, one per /docs/<name> page plus index.astro (home).

Adding a new component

  1. Add the component to src/components/ui/<name>.tsx (@zag-js/* + Frame + cva/twMerge, matching the existing components' style).
  2. Add its doc content to src/components/pages/<name>.tsx (copy an existing one as a template — Preview/Installation/Usage sections).
  3. Add the route: src/pages/docs/<name>.astro, rendering <DocsLayout><YourPage client:load /></DocsLayout>.
  4. Add a nav link in src/components/SiteChrome.tsx's docLinks.

관련 프로젝트 살펴보기

불러오는 중…