### Date Picker Component Installation Example Source: https://www.shadcn-vue.com/docs/components/date-picker.html Illustrates the installation process for the Date Picker component in shadcn/vue. It highlights the dependency on Popover, Calendar, and Range Calendar components, suggesting users refer to their respective installation guides. ```bash npm install @shadcn/ui # or yarn add @shadcn/ui # or pnpm add @shadcn/ui ``` -------------------------------- ### Configure Project Initialization Prompts Source: https://context7_llms Shows example prompts and expected user input for the 'shadcn-vue init' command, covering style, base color, and CSS variable preferences. This guides users through the project setup process. ```bash Which style would you like to use? › New York Which color would you like to use as base color? › Zinc Do you want to use CSS variables for colors? › no / yes ``` -------------------------------- ### Example Component for Registry (Vue) Source: https://context7_llms A simple component example intended to be part of a component registry. It demonstrates basic Vue structure with ``` -------------------------------- ### Vue ``` -------------------------------- ### Line Chart Component Installation (Vue) Source: https://context7_llms Provides instructions for installing the line chart component for shadcn-vue. This involves running an npm command and potentially following a separate setup guide for chart configurations. ```bash npx shadcn-vue@latest add chart-line ``` -------------------------------- ### Create Nuxt Project Source: https://context7_llms Initializes a new Nuxt.js project using npm. It addresses a potential error during setup by recommending the installation of TypeScript. ```bash npm create nuxt@latest ``` ```bash npm install -D typescript ``` -------------------------------- ### React Table Basic Example Source: https://tanstack.com/table/v8/docs/api/features/pagination A fundamental example demonstrating the basic setup and usage of TanStack Table v8 with React. It showcases essential configurations for creating a functional data table. ```jsx import React from 'react'; import { useReactTable, getCoreRowModel } from '@tanstack/react-table'; function BasicTable({ data, columns }) { const table = useReactTable({ data, columns, getCoreRowModel: getCoreRowModel(), }); return ( {table.getHeaderGroups().map(headerGroup => ( {headerGroup.headers.map(header => ( ))} ))} {table.getRowModel().rows.map(row => ( {row.getVisibleCells().map(cell => ( ))} ))}
{header.isPlaceholder ? null : flexRender( header.column.columnDef.header, header.getContext() )}
{flexRender(cell.column.columnDef.cell, cell.getContext())}
); } export default BasicTable; ``` -------------------------------- ### Carousel: Installation and Basic Structure (Vue) Source: https://context7_llms Shows the command for installing the Carousel component and its basic structural usage. It utilizes the Embla Carousel library. The example includes importing Carousel and its sub-components (CarouselContent, CarouselItem, CarouselNext, CarouselPrevious) for a functional carousel setup. ```vue npx shadcn-vue@latest add carousel ``` ```vue ``` -------------------------------- ### Calendar: Installation and Basic Usage (Bash/Vue) Source: https://context7_llms Provides the command to install the Calendar component using shadcn-vue CLI. It also mentions the component's reliance on [@internationalized/date](https://react-spectrum.adobe.com/internationalized/date/index.html) for date handling and its use in building date pickers. No direct code example for Calendar usage is provided in this snippet. ```bash npx shadcn-vue@latest add calendar ``` -------------------------------- ### Vue ``` -------------------------------- ### Install Form Dependencies (Manual) Source: https://context7_llms Command to install necessary npm packages for manual form setup, including reka-ui, vee-validate, and Zod. These packages are crucial for schema validation and form management. ```bash npm install reka-ui vee-validate @vee-validate/zod zod ``` -------------------------------- ### Vue ``` -------------------------------- ### Install @unovis/ts and @unovis/vue Source: https://github.com/unovue/shadcn-vue/issues/1077 This command installs the Unovis TypeScript and Vue packages, which are essential for using charts in shadcn-vue. Ensure you have npm or yarn installed. ```bash npm i @unovis/ts @unovis/vue ``` -------------------------------- ### Manual Installation Dependencies Source: https://context7_llms Lists the necessary dependencies and configuration for manual installation of shadcn-vue. ```APIDOC ## Manual Installation Dependencies ### Description Installs shadcn-vue components manually by adding dependencies and configuring path aliases. ### Dependencies ```bash npm install class-variance-authority clsx tailwind-merge lucide-vue-next tw-animate-css ``` ### Configuration (`tsconfig.json`) ```json:line-numbers {3-6} title="tsconfig.json" { "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["./*"] } } } ``` ``` -------------------------------- ### Vue ``` -------------------------------- ### Date Picker Component Installation Source: https://www.shadcn-vue.com/docs/components/date-picker Explains the installation process for the Date Picker component, which relies on other components like Popover and Calendar. Refer to the installation instructions for Popover, Calendar, and Range Calendar for complete setup. ```markdown The Date Picker is built using a composition of the `Popover` and either the `Calendar` or `RangeCalendar` components. See installations instructions for the Popover, Calendar, and Range Calendar components. ``` -------------------------------- ### Install and Use shadcn-vue Field Component Source: https://context7_llms This example demonstrates the installation command for the shadcn-vue 'field' component and its usage within a Vue.js template. It showcases how to combine labels, inputs, descriptions, and errors for accessible form elements. ```bash npx shadcn-vue@latest add field ``` ```vue ``` -------------------------------- ### Using Top-Level Await in Vue 3's ``` -------------------------------- ### Vue ``` -------------------------------- ### Install shadcn/vue Charts Source: https://www.shadcn-vue.com/docs/charts.html Instructions for installing the shadcn/vue Charts component. This typically involves adding the component to your project, potentially through a CLI command or manual setup. ```bash npm install shadcn-vue-charts # or yarn add shadcn-vue-charts # or pnpm add shadcn-vue-charts ``` -------------------------------- ### Using Custom Directives in Vue ``` ```vue import { myDirective as vMyDirective } from './MyDirective.js' ``` -------------------------------- ### Install Input Component Source: https://context7_llms Installs the 'input' component using the shadcn-vue CLI. This command fetches and adds the necessary files for the input component to your project. ```bash npx shadcn-vue@latest add input ``` -------------------------------- ### Install shadcn-vue Select Component Source: https://www.shadcn-vue.com/docs/components/select Installs the Select component using pnpm. This is the primary method for adding the component to your project. ```shell pnpm dlx shadcn-vue@latest add select ``` -------------------------------- ### Install shadcn-vue Drawer Component Source: https://context7_llms This command installs the Drawer component and its dependencies using the shadcn-vue CLI. Ensure you have npx available in your environment. ```bash npx shadcn-vue@latest add drawer ``` -------------------------------- ### shadcn/vue Input Component Examples Source: https://www.shadcn-vue.com/docs/components/input Provides various examples of the Input component in shadcn/vue, showcasing different configurations like default, file input, disabled state, input with a label, input with an appended button, input with an icon, and a complete form submission example. ```vue ``` ```vue ``` ```vue ``` ```vue ``` ```vue ``` ```vue ``` ```vue ``` -------------------------------- ### Install shadcn-vue Stepper Component Source: https://context7_llms This command installs the Stepper component for shadcn-vue. It requires npx and the shadcn-vue CLI. No specific inputs or outputs are detailed beyond the installation process. ```bash npx shadcn-vue@latest add stepper ``` -------------------------------- ### Vue ``` -------------------------------- ### Install shadcn-vue Toggle Component Source: https://context7_llms Command to install the Toggle component using the shadcn-vue CLI. This is the initial step before using the Toggle component in your project. ```bash npx shadcn-vue@latest add toggle ``` -------------------------------- ### Install Resizable Component (Bash) Source: https://context7_llms Command to install the resizable component using npm via the shadcn-vue CLI. ```bash npx shadcn-vue@latest add resizable ``` -------------------------------- ### Install shadcn-vue Toast Component Source: https://context7_llms Installs the 'toast' component using the shadcn-vue CLI. This command fetches and adds the necessary component files to your project. ```bash npx shadcn-vue@latest add toast ``` -------------------------------- ### Install shadcn-vue Empty Component Source: https://context7_llms This command installs the Empty component and its dependencies using the shadcn-vue CLI. Ensure you have npx available in your environment. ```bash npx shadcn-vue@latest add empty ``` -------------------------------- ### Bash Command for shadcn-vue Dialog Installation Source: https://context7_llms Command to install the dialog component using the shadcn-vue CLI. This command should be run in your project's terminal. It assumes you have npx and shadcn-vue installed. ```bash npx shadcn-vue@latest add dialog ``` -------------------------------- ### Install Component from Registry URL Source: https://context7_llms Installs a component from a remote registry using its URL. This is useful for adding components hosted on a separate registry server. ```bash npx shadcn-vue@latest add http://localhost:3000/r/hello-world.json ``` -------------------------------- ### Install Textarea Component with CLI Source: https://www.shadcn-vue.com/docs/components/textarea Installs the Textarea component using the shadcn-vue CLI. This is the recommended method for adding components. ```bash pnpm dlx shadcn-vue@latest add textarea ``` -------------------------------- ### Install PIN Input Component Source: https://www.shadcn-vue.com/docs/components/pin-input.html Instructions for installing the PIN Input component using different package managers. This is a prerequisite for using the component in your project. ```shell pnpm dlx shadcn-vue@latest add pin-input ``` -------------------------------- ### Install Collapsible Component using CLI Source: https://context7_llms Demonstrates the command to install the Collapsible component using the shadcn-vue CLI. This is a prerequisite for using the component in a project. ```bash npx shadcn-vue@latest add collapsible ``` -------------------------------- ### Defining Props and Emits in Vue ``` -------------------------------- ### Install Tailwind CSS with Vite Plugin Source: https://tailwindcss.com/docs/installation Commands to create a new Vite project and install Tailwind CSS and its Vite plugin. This is the initial setup for integrating Tailwind CSS into a Vite-based project. ```bash npm create vite@latest my-project cd my-project npm install tailwindcss @tailwindcss/vite ``` -------------------------------- ### Install shadcn-vue Tooltip Component Source: https://context7_llms Command to install the Tooltip component using the shadcn-vue CLI. This command fetches and adds the Tooltip component files to your project. ```bash npx shadcn-vue@latest add tooltip ``` -------------------------------- ### CLI Options for Project Initialization Source: https://context7_llms Details the available options for the 'shadcn-vue init' CLI command, including defaults, force overwrite, skipping prompts, and specifying the current working directory. These options allow for customized project setup. ```txt Usage: shadcn-vue init [options] [components...] initialize your project and install dependencies Arguments: components the components to add or a url to the component. Options: -d, --defaults use default values i.e new-york, zinc and css variables. (default: false) -f, --force force overwrite of existing components. (default: false) -y, --yes skip confirmation prompt. (default: false) -c, --cwd the working directory. defaults to the current directory. -h, --help display help for command ``` -------------------------------- ### Combining ``` -------------------------------- ### Install shadcn-vue Dropdown Menu Component Source: https://context7_llms This command installs the DropdownMenu component and its dependencies using the shadcn-vue CLI. Ensure you have npx available in your environment. ```bash npx shadcn-vue@latest add dropdown-menu ``` -------------------------------- ### Basic Item Usage with Script Setup Source: https://context7_llms Demonstrates the fundamental usage of the Item component and its sub-components in a Vue.js application using the ` ``` -------------------------------- ### Custom Documentation Message for Registry Items Source: https://www.shadcn-vue.com/docs/registry/registry-item-json Provides a custom documentation message or instruction to be displayed when a registry item is installed via the CLI. This is useful for guiding users on necessary setup steps. ```json { "docs": "Remember to add the FOO_BAR environment variable to your .env file." } ``` -------------------------------- ### Install shadcn-vue Switch Component Source: https://context7_llms This command installs the Switch component for shadcn-vue using the shadcn-vue CLI. It's a prerequisite for using the Switch component in a project. ```bash npx shadcn-vue@latest add switch ``` -------------------------------- ### Install Combobox Component using CLI Source: https://context7_llms Shows the command to install the Combobox component using the shadcn-vue CLI. This component provides autocomplete and command palette functionality. ```bash npx shadcn-vue@latest add combobox ``` -------------------------------- ### Initialize shadcn/vue Project (bun) Source: https://www.shadcn-vue.com/docs/cli Initializes a new project with shadcn/vue, installing dependencies, setting up the 'cn' utility, and configuring Tailwind CSS. It prompts the user for style, base color, and CSS variable preferences. ```bash bunx shadcn-vue@latest init ``` -------------------------------- ### Install Drawer Component with shadcn/vue CLI Source: https://www.shadcn-vue.com/docs/components/drawer.html This command uses the shadcn/vue CLI to add the Drawer component to your project. Ensure you have shadcn/vue installed. ```bash pnpm dlx shadcn-vue@latest add drawer ``` -------------------------------- ### Start Tailwind CSS Development Server Source: https://tailwindcss.com/docs/installation This command initiates the development server for a project using Tailwind CSS. It's a common step to see your styles reflected in real-time during development. No specific input or output is detailed, but it implies a running development environment. ```bash npm run dev ``` -------------------------------- ### Initialize shadcn-vue CLI with Components Source: https://context7_llms Initializes a new project with shadcn-vue, specifying components to be installed. This command uses the latest version of the CLI and allows for the inclusion of multiple components in a single initialization command. ```bash npx shadcn-vue@latest init Sidebar01 Login01 ``` -------------------------------- ### Basic HTML Structure with Tailwind CSS Utility Classes Source: https://tailwindcss.com/docs/installation Demonstrates how to apply Tailwind CSS utility classes directly within HTML to style content. This example shows a simple heading styled with Tailwind. Ensure your compiled CSS is correctly included in your project for these classes to take effect. ```html

Hello world!

``` -------------------------------- ### shadcn/vue init Command Options Source: https://www.shadcn-vue.com/docs/cli Lists the available options for the 'shadcn-vue init' command, including defaults, force overwrite, skipping confirmation, specifying the working directory, and displaying help. ```bash Usage: shadcn-vue init [options] [components...] initialize your project and install dependencies Arguments: components the components to add or a url to the component. Options: -d, --defaults use default values i.e new-york, zinc and css variables. (default: false) -f, --force force overwrite of existing components.json. (default: false) -y, --yes skip confirmation prompt. (default: false) -c, --cwd the working directory. defaults to the current directory. -h, --help display help for command ``` -------------------------------- ### Install shadcn-vue Tabs Component Source: https://context7_llms This command installs the Tabs component for shadcn-vue using the shadcn-vue CLI. This is a necessary step before implementing tabbed interfaces. ```bash npx shadcn-vue@latest add tabs ``` -------------------------------- ### Install Reka UI Package Source: https://reka-ui.com/docs/guides/migration Installs the latest 'reka-ui' package using npm. This is the first step in the migration process. ```bash npm add reka-ui ``` -------------------------------- ### Install shadcn-vue Table Component Source: https://context7_llms This command installs the Table component for shadcn-vue via the shadcn-vue CLI. It's the first step to using the table component in your project. ```bash npx shadcn-vue@latest add table ``` -------------------------------- ### Initialize shadcn/vue Project (npm) Source: https://www.shadcn-vue.com/docs/cli Initializes a new project with shadcn/vue, installing dependencies, setting up the 'cn' utility, and configuring Tailwind CSS. It prompts the user for style, base color, and CSS variable preferences. ```bash npm dlx shadcn-vue@latest init ``` -------------------------------- ### Initialize shadcn/vue Project (pnpm) Source: https://www.shadcn-vue.com/docs/cli Initializes a new project with shadcn/vue, installing dependencies, setting up the 'cn' utility, and configuring Tailwind CSS. It prompts the user for style, base color, and CSS variable preferences. ```bash pnpm dlx shadcn-vue@latest init ``` -------------------------------- ### shadcn-vue Charts: Basic Area Chart Example Source: https://context7_llms A basic example of rendering an AreaChart component in Vue. It takes data and an array of colors as props. Ensure you have the necessary chart components and dependencies installed. ```vue ``` -------------------------------- ### Vue Input Group API Example Source: https://context7_llms Demonstrates the basic structure of an InputGroup with an InputGroupInput and an InputGroupAddon. This example highlights the fundamental layout for combining inputs with supplementary elements. ```vue ``` -------------------------------- ### Calendar Date Paging Function Example Source: https://reka-ui.com/docs/guides/migration Provides a TypeScript example function for handling date subtraction and addition in the Calendar component, likely related to page navigation. ```typescript function pagingFunc(date: DateValue, sign: -1 | 1) { if (sign === -1) return date.subtract({ years: 1 }); return date.add({ years: 1 }); } ``` -------------------------------- ### Initialize shadcn-vue CLI Source: https://context7_llms Command to run the shadcn-vue initialization process. This command sets up the project for using shadcn-vue components, configuring necessary settings. ```bash npx shadcn-vue@latest init ``` -------------------------------- ### Create Astro Project with Tailwind and Vue Source: https://context7_llms Command to create a new Astro project, pre-configured with Tailwind CSS and Vue support. The `--install` flag automatically installs dependencies, and `--git` initializes a Git repository. ```bash npx create-astro@latest astro-app --template with-tailwindcss --install --add vue --git ``` -------------------------------- ### Install and Use ButtonGroup Component in Vue Source: https://context7_llms Provides installation instructions for the shadcn-vue ButtonGroup component and its related components (Separator, Text). It includes example Vue code for basic usage and demonstrates accessibility features like ARIA attributes. ```bash npx shadcn-vue@latest add button-group ``` ```vue ``` ```vue ``` -------------------------------- ### Basic Textarea Usage in Vue Source: https://context7_llms Example of how to import and use the Textarea component within a Vue application's script setup and template. ```vue