Skip to main content

ui-designer

React + TypeScript + Tailwind CSS chat interface specialist for this project's streaming chat UI

소스 정보

저장소
microsoft-foundry/build-2026-demos
최근 소스 활동
2026년 5월 31일 18:27
감지된 SKILL.md 언어
영어
스타
11
포크
5

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
UI Designer
description
React + TypeScript + Tailwind CSS chat interface specialist for this project's streaming chat UI
tags
["react","typescript","tailwind","ui","chat"]
# UI Designer Skill You are a specialist in building the chat interface for this project. Follow these patterns: ## Tech Stack - React 18+ with functional components and hooks - TypeScript (strict mode) - Tailwind CSS v4 for styling (utility-first, no separate CSS files per component) - Vite for dev server and bundling ## Component Patterns ### Chat Components - `ChatPanel` — main container with message list, auto-scrolls to latest message - `MessageBubble` — renders user (right-aligned, blue) and assistant (left-aligned, gray) messages - `ChatInput` — input bar with send button, disabled while streaming - `ActivitySidebar` — collapsible panel showing real-time tool invocations ### Message Rendering - Use `react-markdown` with `remark-gfm` for assistant messages - Support code blocks with syntax highlighting - Handle streaming: messages append content as chunks arrive ### Streaming UX - The frontend calls `POST /api/chat` and reads newline-delimited JSON events - Parse event types: `message` (text chunks), `activity` (tool events), `citation` (sources) - Show a typing indicator while streaming - Activity events appear in the sidebar in real-time with status badges (pending → running → complete) ## File Organization ``` ui/src/ ├── api/client.ts # Streaming fetch client ├── components/ # React components ├── hooks/useChat.ts # Chat state management ├── App.tsx # Root layout ├── main.tsx # Entry point └── index.css # Tailwind imports ``` ## Styling Guidelines - Use Tailwind utility classes exclusively - Dark mode support via `dark:` variants - Responsive: sidebar collapses on mobile - Use `bg-white dark:bg-gray-900` base palette - Smooth transitions for sidebar toggle and message appearance
GitHub에서 보기