### Vue Tour Setup
Source: https://ark-ui.com/react/docs/components/tour
Initial setup for the Tour component in Vue using script setup syntax.
```vue
{{ toast.title }}{{ toast.description }}
```
```svelte
{#each durations as duration}
{/each}
{#snippet children(toast)}
```
--------------------------------
### Vue Tour Setup
Source: https://ark-ui.com/solid/docs/components/tour
Initial setup for the Tour component in a Vue environment.
```vue
Start
Pause
Reset
```
--------------------------------
### Combobox Root Provider Example
Source: https://ark-ui.com/solid/docs/components/combobox
This example demonstrates the basic setup of the Combobox component using the root provider pattern.
```tsx
import { Combobox } from '@ark-ui/react/combobox'
export const RootProvider = () => {
return (
FrameworkFrameworksReact✓
)
}
```
--------------------------------
### get_example
Source: https://ark-ui.com/react/docs/ai/mcp-server
Retrieves specific code examples and usage patterns for components.
```APIDOC
## get_example
### Description
Retrieves detailed code examples and usage patterns for a specific component or pattern.
### Usage
Invoke this tool to fetch the source code and implementation details for a requested example.
```
--------------------------------
### list_examples
Source: https://ark-ui.com/react/docs/ai/mcp-server
Lists various component examples available in the library.
```APIDOC
## list_examples
### Description
Lists various component examples to help understand how to implement specific UI patterns.
### Usage
Invoke this tool to see a list of available implementation examples.
```
--------------------------------
### Vue FocusTrap Implementation
Source: https://ark-ui.com/react/docs/utilities/focus-trap
Example of using the FocusTrap component in a Vue 3 setup script.
```vue
```
--------------------------------
### Vue DownloadTrigger Implementation
Source: https://ark-ui.com/react/docs/utilities/download-trigger
Example of using the DownloadTrigger component in a Vue application with a script setup block.
```vue
random-image.jpg (fetched on download)
Download Image
```
--------------------------------
### Implement Tour in Svelte
Source: https://ark-ui.com/react/docs/components/tour
Example of setting up a tour with steps and component structure in a Svelte application.
```svelte
```
--------------------------------
### React Image Cropper Flip Example
Source: https://ark-ui.com/react/docs/components/image-cropper
Initial setup for the React Image Cropper flip functionality.
```tsx
import { ImageCropper } from '@ark-ui/react/image-cropper'
import { FlipHorizontalIcon, FlipVerticalIcon } from
```
--------------------------------
### Date Input Implementation in Vue
Source: https://ark-ui.com/solid/docs/components/date-input
Example showing the setup of DateInput and DatePicker using the Vue composition API.
```vue
Date\n import { DatePicker } from '@ark-ui/svelte/date-picker'\n import { Portal } from '@ark-ui/svelte/portal'\n import CalendarIcon from 'lucide-svelte/icons/calendar'\n import ChevronLeftIcon from 'lucide-svelte/icons/chevron-left'\n import ChevronRightIcon from 'lucide-svelte/icons/chevron-right'\n import button from 'styles/button.module.css'\n import styles from 'styles/date-picker.module.css'\n\n\n\n Label\n \n \n \n \n \n Clear\n \n \n \n \n \n \n {#snippet render(datePicker)}\n \n \n \n \n \n \n \n \n \n \n \n
import { Splitter } from '@ark-ui/vue/splitter'
import styles from 'styles/splitter.module.css'
AB
```
```svelte
AB
```
--------------------------------
### Timer Implementation in Vue
Source: https://ark-ui.com/react/docs/components/timer
Example of a Timer component using Vue's script setup and template syntax.
```vue
days
:
hours
:
minutes
:
seconds
Play
Resume
Pause
```
--------------------------------
### Global Styles for Example Layouts
Source: https://ark-ui.com/react/docs/components/listbox
Provides base font and layout utilities for the documentation examples.
```css
@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Text:ital,wght@0,400..800;1,400..800&display=swap');
body {
font-family:
'Wix Madefor Text',
system-ui,
-apple-system,
sans-serif;
position: relative;
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font: inherit;
}
#root,
#storybook-root {
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
padding: 3rem;
isolation: isolate;
}
```
```css
/* Utility classes for example layouts */
[hidden] {
display: none !important;
}
output {
display: flex;
max-width: 32rem;
flex-direction: column;
gap: 0.5rem;
border: 1px solid var(--demo-border-emphasized);
padding: 0.5rem 0.625rem;
margin-bottom: 0.5rem;
font-family: monospace;
max-height: 200px;
overflow-y: auto;
font-size: 0.725rem;
.title {
font-weight: 600;
}
}
.stack {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.vstack {
```
--------------------------------
### Accordion Implementation in Vue
Source: https://ark-ui.com/react/docs/components/accordion
Example of an Accordion component using Vue's script setup and template syntax.
```vue
{{ item.title }}
{{ item.content }}
```
--------------------------------
### Svelte Timer Implementation
Source: https://ark-ui.com/react/docs/components/timer
A countdown timer example using Svelte, featuring start, pause, and reset controls.
```svelte
minutes
:
seconds
Start
Pause
Reset
```
--------------------------------
### Svelte Tour Implementation
Source: https://ark-ui.com/react/docs/components/tour
A complete Svelte example showing tour steps, progress tracking, and component structure.
```svelte
Step 1
Step 2
Step 3
Step 4
{#snippet children(actions)}
{#each actions() as action (action.label)}
{/each}
{/snippet}
```
--------------------------------
### Keyboard Support Implementation
Source: https://ark-ui.com/react/docs/components/tooltip
Examples showing how to control tooltip visibility programmatically using RootProvider.
```vue
Hover MeI am a tooltip!
```
```svelte
Hover MeI am a tooltip!
```
--------------------------------
### Checkbox Implementation in Vue
Source: https://ark-ui.com/solid/docs/components/checkbox
Example of a checkbox with indeterminate state using Vue's script setup and template syntax.
```vue
Checkbox
```
--------------------------------
### Implement Tour in Vue
Source: https://ark-ui.com/react/docs/components/tour
Example of setting up a tour with steps and template structure in a Vue component.
```vue
Enjoy using the app!',\n actions: [{ label: 'Finish', action: 'dismiss' }],\n },\n]\n\nconst tour = useTour({ steps })\n\n\n\n
\n
```
--------------------------------
### Implement Scroll Area in Vue
Source: https://ark-ui.com/react/docs/components/scroll-area
Example of a scroll area implementation using Vue's script setup syntax.
```vue
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur.
```
--------------------------------
### Utility Classes for Example Layouts
Source: https://ark-ui.com/react/docs/components/toast
Helper classes for positioning and styling example components within the documentation.
```css
/* Utility classes for example layouts */
[hidden] {
display: none !important;
}
output {
display: flex;
max-width: 32rem;
flex-direction: column;
gap: 0.5rem;
border: 1px solid var(--demo-border-emphasized);
padding: 0.5rem 0.625rem;
margin-bottom: 0.5rem;
font-family: monospace;
max-height: 200px;
overflow-y: auto;
font-size: 0.725rem;
.title {
font-weight: 600;
}
}
.stack {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.vstack {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.hstack {
display: flex;
flex-direction: row;
align-items: center;
gap:
```
--------------------------------
### Implementing a Localized DatePicker
Source: https://ark-ui.com/react/docs/components/date-picker
This example demonstrates how to configure the DatePicker with a specific locale (de-DE) and set the start of the week to Monday.
```tsx
import { DatePicker } from '@ark-ui/react/date-picker'
import { Portal } from '@ark-ui/react/portal'
import { CalendarIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'
import button from 'styles/button.module.css'
import styles from 'styles/date-picker.module.css'
export const Locale = () => {
return (
Datum auswählenLöschen
{(datePicker) => (
<>
{datePicker.weekDays.map((weekDay, id) => (
{weekDay.short}
```
--------------------------------
### Download QR Code Example
Source: https://ark-ui.com/react/docs/components/qr-code
Demonstrates how to implement a QR code with a download trigger using Ark UI components.
```tsx
import { QrCode } from '@ark-ui/react/qr-code'
import button from 'styles/button.module.css'
import styles from 'styles/qr-code.module.css'
export const Download = () => {
return (
Download
)
}
```
--------------------------------
### Multiple Triggers Setup
Source: https://ark-ui.com/react/docs/components/drawer
Example of using the value prop on Drawer.Trigger to share a single drawer across multiple trigger elements.
```tsx
import { Drawer } from '@ark-ui/react/drawer'
import { XIcon } from 'lucide-react'
import { useState } from 'react'
import button from 'styles/button.module.css'
```
--------------------------------
### Implement Rating Group in Vue
Source: https://ark-ui.com/react/docs/components/rating-group
Example of a disabled Rating Group component using Vue's script setup and template syntax.
```vue
Label
```
--------------------------------
### Svelte Tour Setup
Source: https://ark-ui.com/react/docs/components/tour
Initial setup for the Tour component in Svelte, including imports and step definition.
```svelte
Toggle Panel
Floating Panel