FDS Vue Core is a Vue 3 component library providing a comprehensive suite of UI components, design tokens, and icons, all aligned with Feelgood's digital design guidelines. Currently at version 6.2.1, it offers ready-to-use components like form fields, buttons, tables, and modals. It leverages Tailwind CSS extensively, requiring specific configuration in the consuming project. The library is designed for modern Vue 3 applications, ships with full TypeScript support, and emphasizes an ESM-first approach. Its key differentiators include tight integration with Feelgood's design system, a strong focus on composability (e.g., `FdsWizard` managing only navigation, not data), and a robust type-safe API.
npm install fds-vue-coreVerified import paths — ran on the pinned version, not inferred.
Demonstrates the global registration of FDS Vue Core, necessary Tailwind CSS setup, and basic usage of components in a Vue template.
Ensure `vue@^3.5.0` is explicitly installed in your project: `pnpm add vue@^3.5.0`.
Refer to the documentation for `tailwind.config.js` and `style.css` setup. Missing this will result in unstyled components.
Implement route handling (e.g., using `vue-router`) and manage component data externally. The wizard only provides the navigation UI and emits events.
Add `"postinstall": "pnpm run sync:vscode:settings || true"` to your `package.json` scripts if you intend to use the VS Code settings sync, ensuring resilience during installation.
In your `main.ts` (or equivalent), ensure `app.use(FdsVueCore)` is called *before* mounting the app, or explicitly import desired components like `import { FdsButtonPrimary } from 'fds-vue-core'`.Verify `fds-vue-core` is installed via `pnpm add fds-vue-core`. Ensure `tailwind.config.js` correctly imports `preset from 'fds-vue-core/tailwind.preset.cjs'`.
Ensure you are using `import FdsVueCore from 'fds-vue-core'` for the default export when calling `app.use(FdsVueCore)`. Do not use named imports or `require()` for the global plugin object.