### PageSection with Features and Provide Example Source: https://ui.nuxt.com/docs/components/page-section An alternative setup for the UPageSection component, explicitly importing 'provide' and demonstrating the same feature list structure. This example highlights the flexibility in script setup. ```vue ``` -------------------------------- ### Content TOC with Expanded Script Setup Source: https://ui.nuxt.com/docs/components/content-toc An expanded version of the Content TOC usage example, showing the full script setup with ref import and detailed link structure. ```vue ``` -------------------------------- ### Basic Content Search Setup Source: https://ui.nuxt.com/docs/components/content-search This snippet shows the basic setup for the Content Search component. Ensure you have the Nuxt Content module installed and configured. ```vue ``` -------------------------------- ### Pricing Plans Setup with Ref Source: https://ui.nuxt.com/docs/components/pricing-plans An alternative setup for the UPricingPlans component using `ref` to manage the array of pricing plan objects. This example is functionally identical to the previous one, showcasing a common Vue reactivity pattern. ```vue ``` -------------------------------- ### Create a New Nuxt Project Source: https://content.nuxt.com/docs/getting-started/installation Use the create-nuxt CLI to start a new Nuxt project. Select @nuxt/content from the module selector for automatic installation. ```bash npm create nuxt ``` ```bash yarn create nuxt ``` ```bash pnpm create nuxt ``` ```bash bun create nuxt ``` ```bash deno -A npm:create-nuxt@latest ``` -------------------------------- ### Basic useTour Example Source: https://ui.nuxt.com/llms-full.txt Demonstrates how to use the useTour composable to create a guided tour with multiple steps. Each step targets a different element, and the Popover content is fully customizable. ```vue ``` -------------------------------- ### Content Navigation Setup with Vue Ref Source: https://ui.nuxt.com/docs/components/content-navigation This example shows the full setup for the `UContentNavigation` component, including importing `ref` and defining the navigation structure as a Vue ref. It's used to display a navigation tree with nested items. ```vue ``` -------------------------------- ### Run the Development Server Source: https://content.nuxt.com/docs/getting-started/installation Once dependencies are installed, you can start the Nuxt development server to see your application in action. This command typically watches for file changes and hot-reloads the application. ```bash npm run dev # or yarn dev or pnpm dev ``` -------------------------------- ### Install Vue Dependencies (bun) Source: https://ui.nuxt.com/llms-full.txt Install the necessary packages for Vue using bun. ```bash bun add ai @ai-sdk/gateway @ai-sdk/vue @comark/vue ``` -------------------------------- ### Navigate and Install Dependencies Source: https://content.nuxt.com/docs/getting-started/installation After creating the project, navigate into the project directory and install the necessary dependencies using your preferred package manager. ```bash cd npm install # or yarn install or pnpm install ``` -------------------------------- ### Basic Slider Usage Source: https://ui.nuxt.com/docs/components/slider Demonstrates the basic implementation of a slider component. This is a foundational example for getting started with sliders. ```vue ``` -------------------------------- ### Navigate and Install Dependencies Source: https://content.nuxt.com/docs/getting-started/installation After creating the project, navigate into the project directory and install the necessary dependencies using npm or yarn. ```bash cd npm install ``` ```bash cd yarn install ``` -------------------------------- ### Create Nuxt Project with UI Starter Source: https://ui3.nuxt.com/getting-started/installation/nuxt Initialize a new Nuxt project with Nuxt UI pre-configured using the official starter template. ```bash npm create nuxt@latest -- -t ui ``` -------------------------------- ### Stepper Component Usage Example Source: https://go.nuxt.com/figma-ui Illustrates a 'DO' example for using a Stepper component to guide users through a multi-step process. This helps in documenting navigation or layout components. ```jsx ``` -------------------------------- ### Start Nuxt Development Server Source: https://ui3.nuxt.com/getting-started/installation/nuxt Navigate into your project directory and start the development server. ```bash cd npm run dev ``` -------------------------------- ### Theme Configuration Examples Source: https://ui.nuxt.com/llms-full.txt Demonstrates various theme configurations for different component variants, sizes, and layouts, including class customizations for specific elements like file trailing buttons and file containers. Also shows how to set default variants. ```javascript { size: 'md', layout: 'list', class: { fileTrailingButton: '-me-1.5' } }, { size: 'lg', layout: 'list', class: { fileTrailingButton: '-me-2' } }, { size: 'xl', layout: 'list', class: { fileTrailingButton: '-me-2' } }, { variant: 'button', size: 'xs', class: { base: 'p-1' } }, { variant: 'button', size: 'sm', class: { base: 'p-1.5' } }, { variant: 'button', size: 'md', class: { base: 'p-1.5' } }, { variant: 'button', size: 'lg', class: { base: 'p-2' } }, { variant: 'button', size: 'xl', class: { base: 'p-2' } }, { layout: 'grid', multiple: true, class: { files: 'grid grid-cols-2 md:grid-cols-3 gap-4 w-full', file: 'p-0 aspect-square' } }, { layout: 'grid', multiple: false, class: { file: 'absolute inset-0 p-0' } }, { interactive: true, disabled: false, class: 'hover:bg-elevated/25' } ], defaultVariants: { color: 'primary', variant: 'area', size: 'md' } } } }) ``` -------------------------------- ### Joi Schema Validation Source: https://ui.nuxt.com/llms-full.txt Implement form validation using Joi. This example requires Joi to be installed and imported. ```vue ``` -------------------------------- ### Start the Production Server Source: https://content.nuxt.com/docs/getting-started/installation After building, start the production server to serve your optimized application. This is typically done after the build step. ```bash npm run start ``` ```bash yarn start ``` -------------------------------- ### Yup Schema Validation Source: https://ui.nuxt.com/llms-full.txt Use Yup for schema-based form validation. Ensure Yup is installed and imported for this example. ```vue ``` -------------------------------- ### Complete Pricing Plan Example Source: https://ui.nuxt.com/docs/components/pricing-plan A complete example demonstrating how to define and render the UPricingPlan component with its features. ```vue ``` -------------------------------- ### Basic Navigation Menu Setup Source: https://ui.nuxt.com/docs/components/navigation-menu This snippet demonstrates the basic setup of a Navigation Menu component with a list of items. It includes links to different sections of the documentation and an external GitHub link. ```vue ``` -------------------------------- ### Input with Script Setup and Import Source: https://ui.nuxt.com/components/input This snippet demonstrates the same basic input usage but explicitly includes the `ref` import from Vue, which is necessary when using ` ``` -------------------------------- ### ChatPalette within a Modal Example Source: https://ui.nuxt.com/llms-full.txt This example shows how to embed the UChatPalette component inside a UModal. It includes setup for messages, a chat instance, and custom rendering for assistant messages using Comark for markdown and syntax highlighting. ```vue ``` -------------------------------- ### Icon File Naming Convention Example Source: https://go.nuxt.com/figma-ui Demonstrates the file naming pattern for icon files. ```bash icon-{size}-{kebab-name}.tsx ``` -------------------------------- ### CheckboxGroup with Indicator Prop Source: https://ui.nuxt.com/llms-full.txt Modify the indicator's position with the 'indicator' prop. Defaults to 'start'. This example places it at the 'end'. ```vue ``` -------------------------------- ### Install Iconify Datasets Locally Source: https://ui.nuxt.com/docs/getting-started/integrations/icons Recommended for faster and more reliable icon loading. Install the specific collection for the icons you intend to use. ```bash pnpm i @iconify-json/{collection_name} ``` ```bash yarn add @iconify-json/{collection_name} ``` ```bash npm install @iconify-json/{collection_name} ``` -------------------------------- ### Display Arrow on Select Source: https://ui.nuxt.com/components/select Use the `arrow` prop to display an arrow on the Select component. This example shows a basic setup with predefined items. ```vue ``` ```vue ``` -------------------------------- ### Install Nuxt UI Skill from URL Source: https://ui.nuxt.com/llms-full.txt Install the Nuxt UI skill directly from a website URL if cloning from GitHub is slow. ```bash npx skills add https://ui.nuxt.com ``` -------------------------------- ### Context Menu with Checkbox Items (Expanded) Source: https://ui.nuxt.com/docs/components/context-menu An expanded version of the context menu example, showing the full script setup and template for creating reactive checkbox items within a context menu. This example emphasizes the use of `ref` and `computed` for managing item states. ```vue ``` -------------------------------- ### useTour(steps, options?) Source: https://ui.nuxt.com/llms-full.txt Initializes and manages a guided tour. It takes a list of steps and optional configuration options to control the tour's behavior. ```APIDOC ## useTour(steps, options?) ### Description Initializes and manages a guided tour. It takes a list of steps and optional configuration options to control the tour's behavior. ### Parameters #### Parameters - **steps** (`MaybeRefOrGetter`) - Required - The list of tour steps. Can be a static array, a ref, or a getter for reactive steps. The element the step anchors to. Accepts a CSS selector ('#id', '.class', or a bare id resolved as #id), an element, a virtual element, or a ref/getter returning one. Use null to center the step in the viewport. Any additional fields (title, body, side, …) are passed through and available via current. - **options** (`UseTourOptions`) - Optional - Configuration options for the tour. The step index the tour starts on. Loop back to the first step after the last one. Scroll the target into view when a step becomes active. ### Return - **open** (`Ref`) - Whether the tour is currently open. - **index** (`Ref`) - The current step index, clamped to the steps range. - **current** (`ComputedRef`) - The current step object, or undefined when there are no steps. - **reference** (`ComputedRef`) - The resolved anchor for the current step, to pass to . - **total** (`ComputedRef`) - The total number of steps. - **hasNext** (`ComputedRef`) - Whether a next step exists. - **hasPrev** (`ComputedRef`) - Whether a previous step exists. ### Methods - **start** (`(index?: number) => void`) - Open the tour, optionally at a given index. - **next** (`() => void`) - Go to the next step. Loops or finishes at the end depending on the loop option. - **prev** (`() => void`) - Go to the previous step. - **goTo** (`(index: number) => void`) - Jump to a specific step and open the tour. - **finish** (`() => void`) - Close the tour. ``` -------------------------------- ### Enable Clear Button in USelectMenu Source: https://ui.nuxt.com/components/select-menu Use the `clear` prop to display a clear button when a value is selected in the USelectMenu. This example shows the basic setup. ```vue ``` ```vue ``` -------------------------------- ### Change RadioGroup Indicator Position Source: https://ui.nuxt.com/docs/components/radio-group Use the `indicator` prop to change the position of the indicator. Defaults to `start`. This example sets it to `end` and uses the `card` variant. ```vue ``` ```vue ``` -------------------------------- ### Select Component Usage Example Source: https://go.nuxt.com/figma-ui Demonstrates a 'DO' example for using a Select component, showing common props like placeholder and options. This helps in documenting component API and usage patterns. ```jsx