Skip to content

Formatadores e Código

Gerador de Componentes shadcn/ui

Compose shadcn primitives into ready-to-paste components.

Runs in your browser

shadcn primitives

UserCard.tsx
lines: 20chars: 568size: 568 B
live

Nota do editor

Understanding · Not a library. A copy-paste project.

Este capítulo aprofundado está disponível apenas em inglês no momento. A ferramenta de conversão acima funciona no seu idioma; o artigo explicativo longo ainda não foi traduzido.

Perguntas frequentes

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.

As pessoas também pesquisam por

Ferramentas relacionadas

More in this room.

Ver tudo em Formatadores e Código