Loading...
Loading...
Compare original and translation side by side
bunx nuxi init my-app && cd my-app
bun add @nuxt/ui// nuxt.config.ts
export default defineNuxtConfig({ modules: ['@nuxt/ui'] })<!-- app.vue -->
<template><UApp><NuxtPage /></UApp></template>
<style>
@import "tailwindcss";
@import "@nuxt/ui";
</style>/nuxt-ui-v4:setup/nuxt-ui:migrate/nuxt-ui:theme/nuxt-ui:componentbunx nuxi init my-app && cd my-app
bun add @nuxt/ui// nuxt.config.ts
export default defineNuxtConfig({ modules: ['@nuxt/ui'] })<!-- app.vue -->
<template><UApp><NuxtPage /></UApp></template>
<style>
@import "tailwindcss";
@import "@nuxt/ui";
</style>/nuxt-ui-v4:setup/nuxt-ui:migrate/nuxt-ui:theme/nuxt-ui:component<template>
<UDashboardGroup>
<UDashboardSidebar>
<UNavigationMenu :items="menuItems" />
</UDashboardSidebar>
<UDashboardPanel>
<template #header><UDashboardNavbar /></template>
<template #body><NuxtPage /></template>
</UDashboardPanel>
</UDashboardGroup>
</template>references/dashboard-components.md<template>
<UDashboardGroup>
<UDashboardSidebar>
<UNavigationMenu :items="menuItems" />
</UDashboardSidebar>
<UDashboardPanel>
<template #header><UDashboardNavbar /></template>
<template #body><NuxtPage /></template>
</UDashboardPanel>
</UDashboardGroup>
</template>references/dashboard-components.md<script setup>
import { Chat } from '@ai-sdk/vue'
const chat = new Chat({ api: '/api/chat' })
</script>
<template>
<UChatMessages :messages="chat.messages" :status="chat.status">
<template #content="{ message }">{{ message.content }}</template>
</UChatMessages>
<UChatPrompt v-model="input" @submit="chat.sendMessage({ text: input })">
<UChatPromptSubmit :status="chat.status" />
</UChatPrompt>
</template>references/chat-components.md<script setup>
import { Chat } from '@ai-sdk/vue'
const chat = new Chat({ api: '/api/chat' })
</script>
<template>
<UChatMessages :messages="chat.messages" :status="chat.status">
<template #content="{ message }">{{ message.content }}</template>
</UChatMessages>
<UChatPrompt v-model="input" @submit="chat.sendMessage({ text: input })">
<UChatPromptSubmit :status="chat.status" />
</UChatPrompt>
</template>references/chat-components.md<template>
<UEditor v-model="content" :extensions="extensions">
<template #toolbar>
<UEditorToolbar />
</template>
</UEditor>
</template>references/editor-components.md<template>
<UEditor v-model="content" :extensions="extensions">
<template #toolbar>
<UEditorToolbar />
</template>
</UEditor>
</template>references/editor-components.md<template>
<UPage>
<UPageHero title="Welcome" description="Get started today" :links="heroLinks" />
<UPageSection>
<UPageGrid>
<UPageFeature v-for="f in features" v-bind="f" />
</UPageGrid>
</UPageSection>
<UPageCTA title="Ready?" :links="ctaLinks" />
</UPage>
</template>references/page-layout-components.md<template>
<UPage>
<UPageHero title="Welcome" description="Get started today" :links="heroLinks" />
<UPageSection>
<UPageGrid>
<UPageFeature v-for="f in features" v-bind="f" />
</UPageGrid>
</UPageSection>
<UPageCTA title="Ready?" :links="ctaLinks" />
</UPage>
</template>references/page-layout-components.md<template>
<UBlogPosts>
<UBlogPost v-for="post in posts" v-bind="post" />
</UBlogPosts>
</template>references/content-components.md<template>
<UBlogPosts>
<UBlogPost v-for="post in posts" v-bind="post" />
</UBlogPosts>
</template>references/content-components.md<template>
<UPricingPlans>
<UPricingPlan
v-for="plan in plans"
:title="plan.title"
:price="plan.price"
:features="plan.features"
/>
</UPricingPlans>
</template>references/pricing-components.md<template>
<UPricingPlans>
<UPricingPlan
v-for="plan in plans"
:title="plan.title"
:price="plan.price"
:features="plan.features"
/>
</UPricingPlans>
</template>references/pricing-components.md<UForm :state="state" :schema="schema" @submit="onSubmit">
<UFormField name="email" label="Email">
<UInput v-model="state.email" type="email" />
</UFormField>
<UButton type="submit">Submit</UButton>
</UForm>references/form-components-reference.md<UForm :state="state" :schema="schema" @submit="onSubmit">
<UFormField name="email" label="Email">
<UInput v-model="state.email" type="email" />
</UFormField>
<UButton type="submit">Submit</UButton>
</UForm>references/form-components-reference.md<UTabs v-model="tab" :items="items" />
<UCommandPalette :groups="groups" placeholder="Search..." />
<UStepper v-model="step" :items="steps" />references/navigation-components-reference.md<UTabs v-model="tab" :items="items" />
<UCommandPalette :groups="groups" placeholder="Search..." />
<UStepper v-model="step" :items="steps" />references/navigation-components-reference.md<UModal v-model="isOpen"><UCard>Content</UCard></UModal>
<UDrawer v-model="isOpen" side="right">...</UDrawer>references/overlay-decision-guide.md<UModal v-model="isOpen"><UCard>Content</UCard></UModal>
<UDrawer v-model="isOpen" side="right">...</UDrawer>references/overlay-decision-guide.md<UAlert color="warning" title="Warning message" />
<UEmpty icon="i-heroicons-inbox" title="No items" />
<UBanner title="Important announcement" />references/feedback-components-reference.md<UAlert color="warning" title="Warning message" />
<UEmpty icon="i-heroicons-inbox" title="No items" />
<UBanner title="Important announcement" />references/feedback-components-reference.mduseToastuseOverlayuseColorModeuseFormFielddefineShortcutsdefineLocaleextendLocaleextractShortcutsconst { add } = useToast()
add({ title: 'Success', color: 'success' })
defineShortcuts({ 'meta_k': () => openSearch() })references/composables-guide.mduseToastuseOverlayuseColorModeuseFormFielddefineShortcutsdefineLocaleextendLocaleextractShortcutsconst { add } = useToast()
add({ title: 'Success', color: 'success' })
defineShortcuts({ 'meta_k': () => openSearch() })references/composables-guide.md<UApp>@import "tailwindcss"@import "@nuxt/ui"ref.value?.focus()ref.value.$el.focus()'@nuxt/ui'modulesui: { colorMode: true }references/COMMON_ERRORS_DETAILED.md<UApp>@import "tailwindcss"@import "@nuxt/ui"ref.value?.focus()ref.value.$el.focus()modules'@nuxt/ui'ui: { colorMode: true }references/COMMON_ERRORS_DETAILED.mddashboard-components.mdchat-components.mdai-sdk-v5-integration.mdeditor-components.mdpage-layout-components.mdpricing-components.mdcontent-components.mdform-components-reference.mdform-validation-patterns.mdsemantic-color-system.mdcomponent-theming-guide.mdCOMMON_ERRORS_DETAILED.mddashboard-components.mdchat-components.mdai-sdk-v5-integration.mdeditor-components.mdpage-layout-components.mdpricing-components.mdcontent-components.mdform-components-reference.mdform-validation-patterns.mdsemantic-color-system.mdcomponent-theming-guide.mdCOMMON_ERRORS_DETAILED.md/nuxt-ui-v4:setup/nuxt-ui:migrate/nuxt-ui:theme/nuxt-ui:component/nuxt-ui-v4:setup/nuxt-ui:migrate/nuxt-ui:theme/nuxt-ui:componenthttps://ui.nuxt.com/mcphttps://ui.nuxt.com/mcp