### Install Reka UI Library Source: https://reka-ui.com/docs/overview/getting-started Installs the Reka UI library using npm. This is the first step to using Reka UI components in your project. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI library using npm Source: https://reka-ui.com/overview/getting-started Install the Reka UI component library from your command line using npm, the Node.js package manager. ```sh $ npm add reka-ui ``` -------------------------------- ### Import and Structure Reka UI Popover Components Source: https://reka-ui.com/docs/overview/getting-started Demonstrates how to import and structure the necessary parts of the Reka UI Popover component in a Vue.js application. ```vue ``` -------------------------------- ### Install Reka UI Package Source: https://reka-ui.com/docs/overview/installation Installs the Reka UI package using npm. This is the primary method for adding Reka UI to your project. ```sh npm add reka-ui ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/guides/migration Installs the latest version of the reka-ui package using npm. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/alert-dialog Instructions for installing the Reka UI library using npm. ```bash $ npm add reka-ui ``` -------------------------------- ### Install @internationalized/date Source: https://reka-ui.com/docs/guides/dates Install the necessary package for Reka UI's date and time components. ```bash npm add @internationalized/date ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/select Installs the reka-ui package using npm, yarn, or bun. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Toolbar Source: https://reka-ui.com/docs/components/toolbar Instructions for installing the reka-ui package using npm, yarn, or bun. ```bash $ npm add reka-ui ``` -------------------------------- ### Custom Tree Setup Source: https://reka-ui.com/docs/components/tree Provides an example of setting up a custom tree structure using `TreeRoot` and `Tree` components from `reka-ui`. ```vue ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/dialog Instructions for installing the Reka UI library using npm or yarn. ```sh npm install reka-ui ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/listbox Instructions for installing the reka-ui package using npm, yarn, or bun. ```bash npm install reka-ui ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/pin-input Install the Reka UI component library using npm. ```sh $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/menubar Installs the reka-ui package using npm or yarn. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/toggle-group Instructions for installing the reka-ui package using npm. ```sh $ npm add reka-ui ``` -------------------------------- ### Vue Virtualization Example Source: https://reka-ui.com/docs/guides/virtualization Demonstrates how to use Reka UI's ComboboxVirtualizer component to render a large list of items efficiently. It requires setting a fixed height on the parent viewport and providing estimateSize and textContent props. ```vue ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/dropdown-menu Installs the Reka UI library, which includes the DropdownMenu component, using npm. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Component Library Source: https://reka-ui.com/components/combobox Instructions to install the Reka UI library, which includes the Combobox component, using npm. ```sh $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Component Source: https://reka-ui.com/components/dropdown-menu Instructions to install the Reka UI library using npm, yarn, or bun package managers. ```shell $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/avatar Install the reka-ui component using npm, yarn, or bun. ```sh $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Separator Source: https://reka-ui.com/docs/components/separator Installs the reka-ui package, which includes the Separator component, using npm. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/navigation-menu Instructions for installing the reka-ui package using npm, yarn, or bun. ```bash $ npm add reka-ui ``` -------------------------------- ### Style Reka UI Popover Component Source: https://reka-ui.com/docs/overview/getting-started Shows how to add custom styles to the Reka UI Popover component's trigger, content, and arrow elements using CSS classes in a Vue.js application. ```vue ``` -------------------------------- ### Reka UI Internationalization Setup with VueI18n Source: https://reka-ui.com/docs/guides/i18n Integrate internationalization into your Reka UI application using VueI18n. This involves installing the package, defining messages for different languages, and configuring the i18n instance in your main application file. ```sh $ npm add vue-i18n@latest ``` ```ts import { createApp } from 'vue' import './style.css' import App from './App.vue' import { createI18n } from 'vue-i18n' const messages = { en: { hello: 'Hello', }, fa: { hello: 'درود', }, ar: { hello: 'مرحبا', }, ja: { hello: 'こんにちは', } } const i18n = createI18n({ legacy: false, // you must set `false` to use the Composition API locale: 'en', // set default locale availableLocales: ['en', 'fa', 'ar', 'ja'], messages, }) createApp(App) .use(i18n) .mount('#app') ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/tags-input Instructions for installing the Reka UI library using npm, yarn, or bun. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Aspect Ratio Source: https://reka-ui.com/docs/components/aspect-ratio Instructions for installing the Reka UI Aspect Ratio component using npm, yarn, or bun. ```sh $ npm add reka-ui ``` -------------------------------- ### Add styles to Reka UI Popover components in Vue Source: https://reka-ui.com/overview/getting-started Apply custom CSS styles to the Popover components (PopoverTrigger, PopoverContent, PopoverArrow) within a Vue component. This example demonstrates basic styling for background color, border-radius, padding, and width to customize the appearance of the Popover. ```vue ``` -------------------------------- ### Vue Accordion Component Example Source: https://reka-ui.com/index Demonstrates the usage of Reka UI's Accordion primitive components in a Vue 3 setup. It shows how to import and use AccordionRoot and AccordionItem, with examples of applying CSS classes for styling. ```Vue ``` -------------------------------- ### Dialog Command Menu Example Source: https://reka-ui.com/examples/dialog-command-menu Demonstrates combining Reka UI's Dialog and Combobox components to create a searchable command list within a modal. This allows users to quickly find and execute commands. ```javascript import { Dialog, Combobox } from '@reka-ui/core'; function DialogCommandMenu() { const [isOpen, setIsOpen] = React.useState(false); const [query, setQuery] = React.useState(''); const commands = [ { id: '1', name: 'Open Settings' }, { id: '2', name: 'Create New File' }, { id: '3', name: 'Save File' }, { id: '4', name: 'Close Application' }, ]; const filteredCommands = commands.filter(command => command.name.toLowerCase().includes(query.toLowerCase()) ); return ( <> {/* This trigger is usually a button, but we're using it programmatically */} Command Menu ({ label: command.name, value: command.name }))} onSelect={(value) => { console.log(`Executing: ${value}`); setIsOpen(false); }} /> ); } export default DialogCommandMenu; ``` -------------------------------- ### Install Reka UI Date Range Picker Component Source: https://reka-ui.com/docs/components/date-range-picker Installs the Reka UI Date Range Picker component from the command line. ```sh $ npm add reka-ui ``` -------------------------------- ### Configure Reka UI with unplugin-vue-components Source: https://reka-ui.com/docs/overview/installation Sets up Reka UI with unplugin-vue-components in vite.config.ts. This configuration allows for automatic importing of components from Reka UI by importing 'reka-ui/resolver'. ```ts import Components from 'unplugin-vue-components/vite' import RekaResolver from 'reka-ui/resolver' export default defineConfig({ plugins: [ vue(), Components({ dts: true, resolvers: [ RekaResolver() // RekaResolver({ // prefix: '' // use the prefix option to add Prefix to the imported components // }) ], }), ], }) ``` -------------------------------- ### Install Reka UI Context Menu Component Source: https://reka-ui.com/components/context-menu Instructions to install the `reka-ui` package using npm, providing the necessary command line instruction for adding the component to your project. ```sh $ npm add reka-ui ``` -------------------------------- ### Importing VisuallyHidden Component in Vue Source: https://reka-ui.com/utilities/visually-hidden Demonstrates how to import the `VisuallyHidden` component from `reka-ui` and use it as a wrapper for slot content in a Vue setup script, providing a basic structural example. ```vue ``` -------------------------------- ### Configure Reka UI with Nuxt Modules Source: https://reka-ui.com/docs/overview/installation Integrates Reka UI with Nuxt.js by adding the 'reka-ui/nuxt' module to your nuxt.config.ts file, enabling auto-imports for all Reka UI components. ```ts export default defineNuxtConfig({ modules: ['reka-ui/nuxt'], }) ``` -------------------------------- ### Reka UI Slider Anatomy Source: https://reka-ui.com/docs/components/slider Vue script setup example demonstrating how to import and assemble the Reka UI Slider components (Root, Track, Range, Thumb). ```vue ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/tree Installs the reka-ui package using npm. This is the first step to using the Tree component. ```bash $ npm add reka-ui ``` -------------------------------- ### Reka UI Pagination with First/Last Buttons Source: https://reka-ui.com/docs/components/pagination Shows how to integrate PaginationFirst and PaginationLast components to enable navigation to the first and last pages respectively. This example outlines the Vue setup for such functionality. ```vue ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/pagination Install the Reka UI component library using npm, pnpm, or yarn. ```bash $ npm add reka-ui ``` -------------------------------- ### Animating Reka UI with Motion Vue Source: https://reka-ui.com/docs/guides/animation Provides an example of using the Motion Vue library to animate Reka UI components. This method offers extensive flexibility and is recommended for smooth, performant animations. ```vue ``` -------------------------------- ### Install Reka UI Accordion Source: https://reka-ui.com/docs/components/accordion Instructions for installing the reka-ui package using npm, yarn, or bun. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Combobox Source: https://reka-ui.com/docs/components/combobox Instructions for installing the Reka UI component library, which includes the Combobox, using package managers like npm, yarn, or bun. ```sh $ npm add reka-ui ``` -------------------------------- ### Using a Custom Tooltip Component with Content Prop Source: https://reka-ui.com/components/tooltip This example demonstrates how to integrate and use the custom `Tooltip` component, passing content directly via a `content` prop. It shows a basic setup for a tooltip trigger and its associated content. ```vue ``` -------------------------------- ### Ensure Parent Height for Virtualizer Source: https://reka-ui.com/docs/guides/virtualization A common issue with Reka UI's virtualization is when the parent element of the `` component does not have a defined height. This example shows the correct structure with a `max-h-80 overflow-y-auto` class on the `ComboboxViewport`. ```vue ``` -------------------------------- ### Install Reka UI Source: https://reka-ui.com/docs/components/stepper Installs the reka-ui component library using npm. This is the first step to using the Stepper component in your project. ```bash $ npm add reka-ui ``` -------------------------------- ### Install Reka UI Splitter Source: https://reka-ui.com/docs/components/splitter Instructions for installing the reka-ui package, which includes the Splitter component, using npm or yarn. ```sh $ npm add reka-ui ``` -------------------------------- ### Vue.js useForwardPropsEmits Usage Example Source: https://reka-ui.com/utilities/use-forward-props-emits Demonstrates how to use the `useForwardPropsEmits` composable in a Vue 3 setup script. It shows how to define props and emits, then use the composable to create a `forwarded` object that can be bound directly to a child component using `v-bind`. ```vue ``` -------------------------------- ### Animate Accordion Content Size (Vue, CSS) Source: https://reka-ui.com/components/accordion Provides an example of animating the opening and closing of Accordion content using CSS variables (`--reka-accordion-content-height`) and keyframe animations. This requires both Vue template setup and corresponding CSS styles. ```vue // index.vue ``` ```css /* styles.css */ .AccordionContent { overflow: hidden; } .AccordionContent[data-state="open"] { animation: slideDown 300ms ease-out; } .AccordionContent[data-state="closed"] { animation: slideUp 300ms ease-out; } @keyframes slideDown { from { height: 0; } to { height: var(--reka-accordion-content-height); } } @keyframes slideUp { from { height: var(--reka-accordion-content-height); } to { height: 0; } } ``` -------------------------------- ### Install Reka UI Label Source: https://reka-ui.com/docs/components/label Instructions for installing the Reka UI Label component using npm. ```sh $ npm add reka-ui ``` -------------------------------- ### Configure unplugin-vue-components with Reka UI resolver Source: https://reka-ui.com/overview/installation For projects using `unplugin-vue-components`, import `RekaResolver` from `reka-ui/resolver` and include it in the `resolvers` array of your `Components` plugin configuration in `vite.config.ts`. This setup automatically imports Reka UI components, with an optional `prefix` for custom naming. ```ts import Components from 'unplugin-vue-components/vite' import RekaResolver from 'reka-ui/resolver' export default defineConfig({ plugins: [ vue(), Components({ dts: true, resolvers: [ RekaResolver() // RekaResolver({ // prefix: '' // use the prefix option to add Prefix to the imported components // }) ] }) ] }) ``` -------------------------------- ### Vertical Stepper Example Source: https://reka-ui.com/docs/components/stepper Demonstrates how to create a vertical stepper layout using the Reka UI Stepper component by setting the 'orientation' prop to 'vertical'. Includes basic setup for StepperRoot, StepperItem, StepperIndicator, StepperTitle, and StepperDescription. ```vue ``` -------------------------------- ### Animate Reka UI components with Vue Transition Source: https://reka-ui.com/guides/animation Illustrates how to wrap Reka UI components with Vue's native `` component to handle mount and unmount animations. This example uses a Dialog component and applies a fade transition. ```vue ```