### Dev Setup: Run VitePress for Docs Source: https://github.com/unovue/reka-ui/blob/v2/packages/core/README.md Follow these steps to set up the development environment for the Reka UI documentation using VitePress. This includes installing dependencies, building the library locally, and starting the dev server. ```bash pnpm i pnpm build pnpm docs:dev ``` -------------------------------- ### Start Documentation Development Server Source: https://github.com/unovue/reka-ui/blob/v2/CONTRIBUTING.md Installs documentation dependencies and starts the documentation development server. ```bash pnpm docs:install && pnpm docs:dev ``` -------------------------------- ### Example prompts for LLM assistance with Reka UI Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/overview/getting-started.md These example prompts demonstrate how to leverage LLM-optimized documentation for Reka UI to get AI-powered assistance with component implementation, styling, and accessibility. ```text "Using the Reka UI documentation at https://reka-ui.com/llms.txt, help me implement a custom Dialog component with form validation." "Based on the Reka UI llms.txt documentation, show me how to create an accessible Select component with custom styling." "Refer to the Reka UI llms.txt file and explain how to properly implement keyboard navigation for a Combobox component." ``` -------------------------------- ### Install dependencies for Docs Source: https://github.com/unovue/reka-ui/blob/v2/README.md After cloning the repository, run this command to install all necessary dependencies for the documentation. ```bash pnpm i ``` -------------------------------- ### Install Dependencies Source: https://github.com/unovue/reka-ui/blob/v2/CLAUDE.md Run this command from the repository root to install all project dependencies. ```bash pnpm i ``` -------------------------------- ### Dev Setup: Run Histoire for Storybook Source: https://github.com/unovue/reka-ui/blob/v2/packages/core/README.md Follow these steps to set up the development environment for Reka UI components using Histoire (Storybook). This includes installing dependencies, starting the Storybook dev server, and running tests. ```bash pnpm i pnpm story:dev pnpm test ``` -------------------------------- ### Custom hotkey Example Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/toast.md Example demonstrating how to customize the hotkey for the ToastViewport using an array of key combinations. ```APIDOC ## Examples ### Custom hotkey Override the default hotkey using the `event.code` value for each key from [keycode.info](https://keycode.info/). ```vue line=4 ``` ``` -------------------------------- ### Force Mount Example Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/utilities/presence.md Example demonstrating the use of the `forceMount` prop to ensure content is always rendered, even when not visually present. ```APIDOC ## Force Mount Example When you need to ensure content is always rendered regardless of the present state: ```vue ``` ``` -------------------------------- ### Clone and Install Project Dependencies Source: https://github.com/unovue/reka-ui/blob/v2/CONTRIBUTING.md Clone the repository and install project dependencies using pnpm. ```bash git clone https://github.com/unovue/reka-ui.git cd reka-ui pnpm i ``` -------------------------------- ### Basic Usage Example Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/time-range-field.md A basic example demonstrating how to use the TimeRangeFieldRoot and TimeRangeFieldInput components to create a time range input. ```APIDOC ```vue ``` ``` -------------------------------- ### OTP mode Example Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/pin-input.md Example of how to configure the Pin Input component for OTP mode by setting the `otp` prop to `true`. ```APIDOC ### OTP mode You can set the pin input to `otp` mode by setting otp to `true`. ```vue{6} ``` ``` -------------------------------- ### Pagination Example: With first/last button Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/pagination.md Example showing how to include PaginationFirst and PaginationLast buttons for direct navigation to the first and last pages. ```APIDOC ## With first/last button You can add `PaginationFirst` to allow user to navigate to first page, or `PaginationLast` to navigate to last page. ```vue line=8,10 ``` ``` -------------------------------- ### Install Dependencies for Nuxt 3 Project Source: https://github.com/unovue/reka-ui/blob/v2/playground/nuxt/README.md Use these commands to install project dependencies using npm, pnpm, or yarn. ```bash npm install ``` ```bash pnpm install ``` ```bash yarn install ``` -------------------------------- ### Install @internationalized/date Package Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/month-picker.md Install the date utility package required for date-related components. This is a prerequisite for using the Month Picker. ```bash npm install @internationalized/date # or yarn add @internationalized/date ``` -------------------------------- ### Nested Dialog Example Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/dialog.md Example demonstrating how to nest multiple layers of dialogs. ```APIDOC ## Nested dialog You can nest multiple layers of dialogs. ``` -------------------------------- ### Pagination Example: With ellipsis Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/pagination.md Example demonstrating how to use PaginationEllipsis for visual cues in long page lists. ```APIDOC ## With ellipsis You can add `PaginationEllipsis` as a visual cue for more previous and after items. ```vue line=10,14 ``` ``` -------------------------------- ### Duplicate toasts Example Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/toast.md Example illustrating how to render multiple instances of the same toast by using state to control the count, suitable for actions that should trigger a toast each time. ```APIDOC ### Duplicate toasts When a toast must appear every time a user clicks a button, use state to render multiple instances of the same toast (see below). Alternatively, you can abstract the parts to create your own [imperative API](/docs/components/toast#imperative-api). ```vue line=3,8 ``` ``` -------------------------------- ### Start Nuxt 3 Development Server Source: https://github.com/unovue/reka-ui/blob/v2/playground/nuxt/README.md Commands to start the local development server for a Nuxt 3 project using npm, pnpm, or yarn. The server typically runs on http://localhost:3000. ```bash npm run dev ``` ```bash pnpm run dev ``` ```bash yarn dev ``` -------------------------------- ### Pagination Example: Control page programmatically Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/pagination.md Example demonstrating how to control the current page of the pagination component programmatically using a reactive value. ```APIDOC ## Control page programmatically You can control the current page by passing it a reactive value. ```vue line=6,10,11 ``` ``` -------------------------------- ### Stepper Anatomy Example Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/stepper.md Demonstrates how to import and assemble all parts of the Stepper component to create a basic stepper structure. ```vue ``` -------------------------------- ### Custom Dropdown Menu API Example Source: https://github.com/unovue/reka-ui/blob/v2/docs/content/docs/components/dropdown-menu.md An example demonstrating how to abstract primitive Dropdown Menu parts into a custom API, including checkbox and radio item implementations. ```vue