Skip to main content

ui

Use this skill when you need to write any frontend components. It explains project's UI best practices

소스 정보

저장소
baptisteArno/typebot.io
최근 소스 활동
2026년 3월 26일 15:29
감지된 SKILL.md 언어
영어
스타
10,546
포크
3,235

설치 방법

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

소스 파일 검토

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

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
ui
description
Use this skill when you need to write any frontend components. It explains project's UI best practices
- Keep it simple. Use the least amount of class names as possible - We like to rely mostly on Flexbox layout. Instead of `w-full` try `flex-1` instead. - UI primitives are defined in packages/ui. Use them whenever possible. Be very careful when you add custom class names to a primitive components, it should be last resort for a very local exception: we want the design system to be respected. - You can write `useEffect` only if syncing with external storage or with DOM event. Otherwise, just derive values from others. - Sort component props: values first, functions last - Never add explicit type annotations on callback parameters when the type can be inferred from the component prop. e.g. `onValueCommit={(name) =>` not `onValueCommit={(name: string) =>` - Use `cn()` when conditionally applying Tailwind classes that may conflict (e.g. border colors). - In React components, order declarations as follows: 1. Context hooks (useWorkspace, useTranslate, etc.) 2. useState / useRef 3. useQuery 4. useMutation 5. Handlers 6. Derived variables
GitHub에서 보기