ตัวจัดรูปแบบและโค้ด
ตัวสร้างคอมโพเนนต์ shadcn/ui
Compose shadcn primitives into ready-to-paste components.
shadcn primitives
หมายเหตุจากบรรณาธิการ
Understanding · Not a library. A copy-paste project.
บทเชิงลึกนี้มีให้บริการเฉพาะภาษาอังกฤษในขณะนี้ เครื่องมือแปลงด้านบนทำงานในภาษาของคุณ บทความอธิบายแบบยาวยังไม่ได้แปล
คำถามที่พบบ่อย
Quick answers.
›Do I need to install shadcn/ui first?
Yes. This tool generates code that assumes you have the `shadcn-ui` CLI configured and the necessary primitives installed via `npx shadcn-ui@latest add`.
›Is the code compatible with Next.js?
Yes. The generated output uses standard React and Tailwind CSS conventions that work in Next.js, Vite, and other modern frameworks.
›Does this support TypeScript?
The generator provides TypeScript-first code by default, including the necessary types for props and component refs.
›Can I customise the styling?
The output uses Tailwind CSS utility classes. You can modify the generated classes directly in your editor to match your specific design requirements.
ผู้คนยังค้นหา
เครื่องมือที่เกี่ยวข้อง
More in this room.
- JSON เป็น React Hook Form + ZodTyped form schema และ useForm hook จากรูปแบบ JSON
- JSON เป็น Next.js Server ActionServer Action พร้อมการแยกวิเคราะห์ Zod และ revalidatePath
- JSON เป็น Prisma Schema Modelสร้าง Prisma model block จากตัวอย่าง JSON
- JSON เป็น Drizzle ORM Schemaนิยาม Drizzle pgTable พร้อม $inferSelect / $inferInsert
- JSON เป็น TypeORM EntityTypeORM @Entity class พร้อม decorators และ id ที่สร้างขึ้น
- JSON เป็น Mongoose Schema + ModelMongoose Schema + model พร้อม timestamps และ types