@anweb/nuxt-ancore
v1.16.6
Published
AnCore Nuxt module
Downloads
355
Readme
AnCore module for Nuxt
A set of composables, components and utilities for Nuxt to handle common tasks: data fetching with SSR, paginated lists, form validation, dialogs, i18n and more.
Setup
npm i @anweb/nuxt-ancoreexport default defineNuxtConfig({
modules: ['@anweb/nuxt-ancore']
})Composables
| Name | Description |
|---|---|
| useAnData | Data fetching with SSR/CSR support, URL params, query and auto-refresh |
| useAnList | Paginated lists with infinite scroll, filters and reverse mode |
| useAnForm | Form state, validation (async-validator), history and diff tracking |
| useAnDialogs | Dynamic dialogs: open, close, closeAll, swipe-to-dismiss |
| useAnI18n | i18next integration with per-component namespaces and language switching |
Components
| Name | Description |
|---|---|
| AnTab | Headless tab with lazy rendering and state preservation via display: none |
| AnDropdown | Dropdown with CSS Anchor Positioning, teleport and ARIA |
Utilities
| Name | Description |
|---|---|
| toQuery | Converts an object to a URL query string, filtering out null/undefined |
| asyncInit | SSR-aware init helper: awaits during SSR, fires without await on CSR |
| coreApi | Core API wrapper around $fetch with typed responses |
