Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

tsx

bởi kleberbaum

Web & Frontend Development
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

TSX namespace for Netsnek e.U.

Mô tả

Kỹ năng này làm gì

TSX is a TypeScript component toolkit by Netsnek e.U. for scaffolding React components with type-safe props, Storybook integration, and auto-generated documentation. It provides shell scripts to create, list, and inspect components.

Combining scaffolding, type generation, and Storybook wiring into a single script reduces the manual steps typically needed when setting up a new React component.

Khi nào nên dùng

  • Scaffold a new React component with boilerplate in one command
  • List all components in a project to audit the component library
  • Check Storybook integration status before running visual tests
  • Generate type files alongside component files to enforce prop contracts
  • Bootstrap a component with its Story file for immediate visual development

Quy trình ví dụ

ĐẦU VÀO

User asks: create a new Button component

AGENT
  1. 1

    Run ./scripts/component-gen.sh --scaffold Button to generate component files

  2. 2

    Review the generated types file and define the Button props

  3. 3

    Run ./scripts/component-gen.sh --info to confirm Storybook integration details

  4. 4

    Open Storybook to visualize the Button component variants

ĐẦU RA

A Button component with a types file and Story file ready for development

Cài đặt

clawhub install kleberbaum/tsx

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết