vue-modal

Generate Vue.js modal components with PrimeVue Dialog and vee-validate validation.

1|Updated Oct 20, 2024
One-click install
npx skills add https://github.com/denizzeybek/Flexytime-Fe --skill vue-modal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-modal
Source: https://github.com/denizzeybek/Flexytime-Fe/tree/main/.claude/skills/vue-modal
Command: npx skills add https://github.com/denizzeybek/Flexytime-Fe --skill vue-modal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of modal dialogs for forms within a Vue.js application, complete with integrated validation.

Core Features & Use Cases

  • Modal Generation: Creates reusable modal components using PrimeVue Dialog.
  • Form Integration: Implements form handling and validation with vee-validate and Yup.
  • Use Case: When you need to add a new company or edit an existing one, use this Skill to quickly scaffold the necessary modal component with all its form fields and validation rules.

Quick Start

Use the vue-modal skill to create a modal named CompanyModal for the settings/companies page.

Frequently Asked Questions about vue-modal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Vue modal with form validation using PrimeVue?

To generate a Vue modal with form validation, this Skill scaffolds a Vue.js component using PrimeVue Dialog, vee-validate, and Yup to handle form fields and validation rules for creating or editing entries. It supports Vue 3 and internationalization via i18n.

Can I use vee-validate and Yup inside a PrimeVue Dialog component?

Yes, you can use vee-validate and Yup inside a PrimeVue Dialog. This Skill integrates these libraries to manage form submission and validation logic directly within the modal component for specified page contexts.

How do I scaffold a Vue modal for both creating and editing existing data?

To scaffold a Vue modal for creating and editing existing data, this Skill generates a reusable component configured for both operations. It applies PrimeVue Dialog and vee-validate to manage form state and validation for new entries or updates within a specific page.

What dependencies do I need to set up a Vue 3 modal with vee-validate?

To set up a Vue 3 modal with vee-validate, you need PrimeVue for the Dialog component, vee-validate and Yup for form validation, and an i18n library for internationalization. The Skill generates code expecting these dependencies to be installed in your project.

Is there a way to automate internationalization in Vue modal forms?

Automating internationalization in Vue modal forms is supported by this Skill. It generates modal components using PrimeVue Dialog and vee-validate while requiring an i18n setup to handle translated text for form fields and validation messages across different locales.