How to use this developer tool
- Enter a component name on the first line.
- Choose script setup or Options API.
- Set ts or js as the script language.
- Copy the generated SFC into your project.
Generate a practical Vue component using script setup or Options API, with naming normalization, props, emits, styles, and optional test guidance.
Creates a complete Vue SFC with normalized PascalCase and kebab-case names, a prop, an emit, accessible markup, and scoped styling.
Generated code is intentionally dependency-free and should be adapted to the project domain.
Use the preloaded sample, run the tool, then inspect the output and status before copying it into a project.
Choose Script Setup, enter the component name, and generate a complete Vue SFC.
Enter ts as the script language to receive a lang="ts" script block and typed declarations.
Choose Options API before generating the component.
Enable scoped styles to add the scoped attribute to the style block.
Yes. Use the download button to save the output with a Vue file extension.
| Module | Purpose |
|---|---|
| Naming | PascalCase and file-safe CSS class |
| API | Script Setup or Options API |
| Output | Single .vue component |