### Start Development Server with Bun Source: https://ui.nuxt.com/docs/typography/code-tree Use this command to start the Nuxt.js development server using Bun. Ensure Bun is installed and the project has a 'dev' script defined in its package.json. ```bash bun run dev ``` -------------------------------- ### Start Development Server with Yarn Source: https://ui.nuxt.com/docs/typography/code-tree Use this command to start the Nuxt.js development server using Yarn. Ensure Yarn is installed and the project has a 'dev' script defined in its package.json. ```bash yarn dev ``` -------------------------------- ### Start Development Server with pnpm Source: https://ui.nuxt.com/docs/typography/code-tree Use this command to start the Nuxt.js development server using pnpm. Ensure pnpm is installed and the project has a 'dev' script defined in its package.json. ```bash pnpm run dev ``` -------------------------------- ### Start Development Server with npm Source: https://ui.nuxt.com/docs/typography/steps Use this command to start your development server. ```bash npm run dev ``` -------------------------------- ### Install @nuxt/content with bun Source: https://ui.nuxt.com/docs/getting-started/integrations/content Install the @nuxt/content package using bun. ```bash bun add @nuxt/content ``` -------------------------------- ### Example Tools Source: https://ui.nuxt.com/docs/getting-started/ai/mcp Tools for listing and retrieving Nuxt UI examples and code demonstrations. ```APIDOC ## Example Tools - **list_examples**: Lists all available UI examples and code demonstrations - **get_example**: Retrieves specific UI example implementation code and details ``` -------------------------------- ### Start Development Servers Source: https://ui.nuxt.com/docs/getting-started/contribution Commands to start development servers for documentation, Nuxt components (playground), and Vue components (playground). ```sh pnpm run docs ``` ```sh pnpm run dev ``` ```sh pnpm run dev:vue ``` -------------------------------- ### Install @nuxt/content with yarn Source: https://ui.nuxt.com/docs/getting-started/integrations/content Install the @nuxt/content package using yarn. ```bash yarn add @nuxt/content ``` -------------------------------- ### Install @nuxt/content with npm Source: https://ui.nuxt.com/docs/getting-started/integrations/content Install the @nuxt/content package using npm. ```bash npm install @nuxt/content ``` -------------------------------- ### Install @nuxt/content with pnpm Source: https://ui.nuxt.com/docs/getting-started/integrations/content Install the @nuxt/content package using pnpm. ```bash pnpm add @nuxt/content ``` -------------------------------- ### Install Dependencies with npm, pnpm, yarn, or bun Source: https://ui.nuxt.com/docs/typography/code-tree Use the appropriate command for your package manager to install project dependencies. ```bash # npm npm install ``` ```bash # pnpm pnpm install ``` ```bash # yarn yarn install ``` ```bash # bun bun install ``` -------------------------------- ### Start Nuxt Development Server Source: https://ui.nuxt.com/docs/typography/code-tree Use these commands to start the development server on http://localhost:3000. Available for npm, pnpm, yarn, and bun. ```bash npm run dev ``` ```bash pnpm run dev ``` ```bash yarn dev ``` ```bash bun run dev ``` -------------------------------- ### Install Dependencies Source: https://ui.nuxt.com/docs/getting-started/contribution Install project dependencies using pnpm, the recommended package manager for this project. ```sh pnpm install ``` -------------------------------- ### Install Nuxt UI Skill Directly from Website Source: https://ui.nuxt.com/docs/getting-started/ai/skills Install the Nuxt UI skill directly from the website URL if cloning from GitHub is slow on your network. ```bash npx skills add https://ui.nuxt.com ``` -------------------------------- ### Install MCP Client with npm Source: https://ui.nuxt.com/docs/components/chat Install the MCP package using npm. This is the first step to enable tool-calling features in your chatbot. ```bash npm install @ai-sdk/mcp ``` -------------------------------- ### Install Dependencies with npm, pnpm, yarn, or bun Source: https://ui.nuxt.com/docs/typography/code-tree Install project dependencies using your preferred package manager. ```bash # npm npm install # pnpm pnpm install # yarn yarn install # bun bun install ``` -------------------------------- ### Start Nuxt 4 Development Server Source: https://ui.nuxt.com/docs/typography/code-tree Start the Nuxt 4 development server on http://localhost:3000. ```bash # npm npm run dev # pnpm pnpm run dev # yarn yarn dev # bun bun run dev ``` -------------------------------- ### Start Nuxt 4 Development Server Source: https://ui.nuxt.com/docs/typography/code-tree Commands to start the Nuxt 4 development server using npm, pnpm, yarn, or bun. ```bash # npm npm run dev ``` ```bash # pnpm pnpm run dev ``` ```bash # yarn yarn dev ``` ```bash # bun bun run dev ``` -------------------------------- ### Install Nuxt UI Skill Globally Source: https://ui.nuxt.com/docs/getting-started/ai/skills Install the Nuxt UI skill globally so it is available across all your projects. ```bash npx skills add nuxt/ui --global ``` -------------------------------- ### Install Iconify Collection with pnpm Source: https://ui.nuxt.com/docs/getting-started/integrations Install icon data locally for a specific collection using pnpm. This improves performance and reliability. ```bash pnpm i @iconify-json/{collection_name} ``` -------------------------------- ### Install Iconify Collection with npm Source: https://ui.nuxt.com/docs/getting-started/integrations Install icon data locally for a specific collection using npm. This improves performance and reliability. ```bash npm install @iconify-json/{collection_name} ``` -------------------------------- ### Install Iconify Dataset Locally Source: https://ui.nuxt.com/docs/getting-started/integrations/icons/nuxt Install icon data locally using your package manager to improve performance and reliability. Replace '{collection_name}' with the desired Iconify collection. ```bash pnpm i @iconify-json/{collection_name} ``` ```bash yarn add @iconify-json/{collection_name} ``` ```bash npm install @iconify-json/{collection_name} ``` -------------------------------- ### Install Nuxt UI Package Source: https://ui.nuxt.com/docs/getting-started/installation/nuxt Install the Nuxt UI and Tailwind CSS packages using your preferred package manager. ```bash pnpm add @nuxt/ui tailwindcss ``` ```bash yarn add @nuxt/ui tailwindcss ``` ```bash npm install @nuxt/ui tailwindcss ``` ```bash bun add @nuxt/ui tailwindcss ``` -------------------------------- ### Install Iconify Collections with PNPM Source: https://ui.nuxt.com/docs/getting-started/integrations/icons Install icon data locally using PNPM for faster and more reliable icon serving, especially in SSR and client-side applications. ```bash pnpm i @iconify-json/{collection_name} ``` -------------------------------- ### Install Iconify Collections with NPM Source: https://ui.nuxt.com/docs/getting-started/integrations/icons Install icon data locally using NPM for faster and more reliable icon serving, especially in SSR and client-side applications. ```bash npm install @iconify-json/{collection_name} ``` -------------------------------- ### Install Iconify Collection with yarn Source: https://ui.nuxt.com/docs/getting-started/integrations Install icon data locally for a specific collection using yarn. This improves performance and reliability. ```bash yarn add @iconify-json/{collection_name} ``` -------------------------------- ### Install AI SDK Dependencies Source: https://ui.nuxt.com/docs/components/editor Installs the necessary packages for AI-powered features in your project. Ensure you have these dependencies before implementing AI completion or other AI functionalities. ```bash pnpm add ai @ai-sdk/gateway @ai-sdk/vue ``` ```bash yarn add ai @ai-sdk/gateway @ai-sdk/vue ``` ```bash npm install ai @ai-sdk/gateway @ai-sdk/vue ``` ```bash bun add ai @ai-sdk/gateway @ai-sdk/vue ``` -------------------------------- ### Install Nuxt UI Skill with Skills CLI Source: https://ui.nuxt.com/docs/getting-started/ai/skills Use the Skills CLI to add the Nuxt UI skill to your projects. This command installs the skill for all agents. ```bash npx skills add nuxt/ui ``` -------------------------------- ### Install Iconify Collections with Yarn Source: https://ui.nuxt.com/docs/getting-started/integrations/icons Install icon data locally using Yarn for faster and more reliable icon serving, especially in SSR and client-side applications. ```bash yarn add @iconify-json/{collection_name} ``` -------------------------------- ### Group Code Examples with ProseCodeGroup Source: https://ui.nuxt.com/docs/typography/code-group Wrap your code blocks within the `code-group` component to render them as tabs. This example shows how to group different package manager installation commands. ```vue ``` -------------------------------- ### Configuring Starter Kit Options Source: https://ui.nuxt.com/docs/components/editor Shows how to customize the built-in TipTap StarterKit extension using the 'starter-kit' prop. This example disables blockquotes and configures heading levels and dropcursor. ```vue ``` -------------------------------- ### Basic Usage Example Source: https://ui.nuxt.com/docs/composables/define-shortcuts Demonstrates how to define simple keyboard shortcuts using the defineShortcuts composable. ```APIDOC ## Basic usage ```vue ``` ``` -------------------------------- ### Form with Regle Validation Source: https://ui.nuxt.com/docs/components/form This example shows how to use Regle for form validation. It requires installing Regle and defining rules using its API. ```vue ``` -------------------------------- ### CheckboxGroup with Indicator Position Source: https://ui.nuxt.com/docs/components/checkbox-group Change the position of the indicator or hide it using the `indicator` prop. Defaults to `start`. This example places the indicator at the `end`. ```vue ``` -------------------------------- ### Create Nuxt App with Vue Starter Template Source: https://ui.nuxt.com/docs/getting-started/installation/vue Use this command to create a new Nuxt project with the basic Vue UI starter template. ```bash npm create nuxt@latest -- --no-modules -t ui-vue ``` -------------------------------- ### ScrollArea External Scroll Example Source: https://ui.nuxt.com/docs/components/scroll-area Pass a `getScrollElement` function in the `virtualize` prop to virtualize against an ancestor scroll container. Set `scrollMargin` to the list's offset from the scroll element's start. This example demonstrates virtualizing against an external container for shared scrollbars. ```vue ``` -------------------------------- ### Basic useTour Example Source: https://ui.nuxt.com/docs/composables/use-tour Demonstrates how to set up a guided tour with multiple steps, each targeting a different element. The popover content and navigation buttons are fully customizable. ```vue ``` -------------------------------- ### Input with Masking Source: https://ui.nuxt.com/docs/components/input Applies input masking using the 'maska' library. Examples show credit card and date/CVC masking. Ensure the 'maska' library is installed and imported. ```vue ``` -------------------------------- ### Input Focus Handling Example Source: https://ui.nuxt.com/docs/composables/define-shortcuts Shows how to use the `usingInput` option to control shortcut behavior based on input focus. ```APIDOC ## With input focus handling The `usingInput` option allows you to specify that a shortcut should only trigger when a specific input is focused. ```vue ``` ``` -------------------------------- ### Using Editor Toolbar Items Source: https://ui.nuxt.com/docs/components/editor Example of integrating the Editor component with a toolbar. This setup allows users to apply various formatting and structural changes to the editor content. ```vue ``` -------------------------------- ### Dynamic LocaleSelect with Nuxt i18n Source: https://ui.nuxt.com/docs/components/locale-select Integrate the LocaleSelect component with Nuxt i18n for dynamic locale switching. This example uses `useI18n` to get the current locale and `setLocale` to change it. ```vue ``` -------------------------------- ### Create Nuxt Project with UI Template Source: https://ui.nuxt.com/docs/getting-started/installation/nuxt Use the `create-nuxt-app` command with a specific template to quickly set up a Nuxt project with Nuxt UI pre-configured. ```bash npm create nuxt@latest -- -t ui ``` ```bash npm create nuxt@latest -- -t ui/landing ``` ```bash npm create nuxt@latest -- -t ui/docs ``` ```bash npm create nuxt@latest -- -t ui/saas ``` ```bash npm create nuxt@latest -- -t ui/dashboard ``` ```bash npm create nuxt@latest -- -t ui/chat ``` ```bash npm create nuxt@latest -- -t ui/portfolio ``` ```bash npm create nuxt@latest -- -t ui/changelog ``` ```bash npm create nuxt@latest -- -t ui/editor ``` -------------------------------- ### Header Component in app.vue Source: https://ui.nuxt.com/docs/components/header Integrate the Header component into your application's main `app.vue` file or within a layout. This example shows a standard setup with navigation items and utility buttons. ```vue ``` -------------------------------- ### Nuxt 4 README.md Overview Source: https://ui.nuxt.com/docs/typography/code-tree Basic README content for a Nuxt 4 minimal starter project, including links to documentation. ```markdown # Nuxt 4 Minimal Starter Look at the [Nuxt 4 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. ## Setup Make sure to install the dependencies: ```bash # npm npm install # pnpm pnpm install # yarn yarn install # bun bun install ``` ## Development server Start the development server on `http://localhost:3000`: ```bash # npm npm run dev # pnpm pnpm run dev # yarn yarn dev # bun bun run dev ``` ## Production ``` -------------------------------- ### Vue Chat Component Setup Source: https://ui.nuxt.com/docs/components/chat Sets up the Chat component for a Vue application, including message handling and UI rendering for different message types. This example is similar to the Nuxt version but uses Vue-specific imports for Comark. ```vue ``` -------------------------------- ### Using Chat Prompt as a Chat Interface Starting Point Source: https://ui.nuxt.com/docs/components/chat-prompt Integrate the UChatPrompt component into your Vue application to create a basic chat interface. This example shows how to handle user input and navigate to a chat page upon the first message submission. ```vue ``` -------------------------------- ### Header with Navigation and Utility Buttons Source: https://ui.nuxt.com/docs/components/header This example demonstrates a complete Header component setup with a logo in the title slot, navigation links using UNavigationMenu, and utility buttons (color mode, GitHub link) in the right slot. It's suitable for a typical application header. ```vue ``` -------------------------------- ### AI Chat Sidebar Example Source: https://ui.nuxt.com/docs/components/sidebar This Vue component integrates AI chat capabilities into a right-aligned sidebar. It uses ChatMessages for displaying conversation history and ChatPrompt for user input, with AI SDK for Vue handling the chat logic. Ensure necessary AI and UI packages are installed. ```vue ``` -------------------------------- ### Vue Table with Row Selection Example Source: https://ui.nuxt.com/docs/components/table This snippet shows a complete Vue component for a table with row selection enabled. It includes setup for data, columns with custom cells for checkboxes, and integration with TanStack Table's row selection API. Use this as a base for tables where users need to select multiple rows. ```vue ``` -------------------------------- ### Install MCP Client with pnpm Source: https://ui.nuxt.com/docs/components/chat Install the MCP package using pnpm. This is an alternative package manager for installing the MCP library. ```bash pnpm add @ai-sdk/mcp ``` -------------------------------- ### Install MCP Client with yarn Source: https://ui.nuxt.com/docs/components/chat Install the MCP package using yarn. This is another package manager option for installing the MCP library. ```bash yarn add @ai-sdk/mcp ``` -------------------------------- ### Install @nuxt/ui with bun Source: https://ui.nuxt.com/docs/typography Use this command to add the @nuxt/ui package to your project using bun. ```bash bun add @nuxt/ui ``` -------------------------------- ### Markdown Heading Example Source: https://ui.nuxt.com/docs/typography/headers-and-text Example of a Level 1 heading in Markdown format. ```markdown # Nuxt UI ``` -------------------------------- ### create() Source: https://ui.nuxt.com/docs/composables/use-overlay Creates an overlay and returns a factory instance. This instance can then be used to control the lifecycle of the created overlay. ```APIDOC ## create(component: T, options?: OverlayOptions): OverlayInstance ### Description Create an overlay, and return a factory instance. ### Parameters #### component (`T`) * required: The overlay component to render. #### options (`OverlayOptions`) * Optional: Configuration options for the overlay. * `open`: Open the overlay immediately after being created. Defaults to false. * `props`: An optional object of props to pass to the rendered component. * `persistent`: Removes the overlay from memory when closed. Defaults to false. ```