Components
FormForgeCategoryCreateModal
Modal component for category creation flows in admin screens.
Use FormForgeCategoryCreateModal when admins need to create categories inline.
Props:
endpoint?locale?categoryRouteKey?to align refresh/use with backendcategory-routes/{key}
<script setup lang="ts">
const open = ref<boolean>(false)
</script>
<template>
<UButton
label="New category"
icon="i-lucide-folder-plus"
@click="open = true"
/>
<FormForgeCategoryCreateModal
v-model:open="open"
/>
</template>
Recommended flow:
- open modal from category toolbar
- create category
- refresh category options in parent screen