Prompt Refactor

Convert to Script Setup

Refactor a component to use the <script setup> syntax.

vue
Insert label Script Setup
Prompt

Convert this component to <script setup>. Remove the explicit export default, use defineProps and defineEmits compiler macros, and replace Options API patterns with Composition API equivalents. Keep the template and styles unchanged.

Add this to your Facet Inserts in Crystl for one-click access.

Get Crystl