
Vibe Coding a Collaborative Editor with Comment Support with Nuxt UI and Jazz
VueSchool
The Calendar component gains a single type prop (date | month | year, default date) that renders it as a day, month or year picker, covering both standalone pickers and quick navigation:
<script setup lang="ts">
const value = shallowRef(new CalendarDate(2026, 6, 17))
</script>
<template>
<UCalendar v-model="value" type="month" />
</template>
[!TIP]
Indatemode the heading also becomes a clickable button that cyclesday → month → year, so you can jump to a month or year without clicking throughprev/nextrepeatedly. This is controlled by the newviewControlsandviewButtonprops and works withrange.
The new useTour composable drives guided tours by re-anchoring a single Popover across steps. It owns the step state and resolves each step's target into a reference you bind to <UPopover>, while you keep full control over the content and navigation:
<script setup lang="ts">
const card = useTemplateRef('card')
const tour = useTour([
{ target: '#cta', title: 'Get started' },
{ target: () => card.value, title: 'Profile', side: 'right' },
{ target: null, title: 'All set' }
])
</script>
<template>
<UButton @click="tour.start()">Start tour</UButton>
<UPopover :open="tour.open.value" :reference="tour.reference.value" :dismissible="false">
<template #content>
<!-- your content + buttons -->
<UButton :disabled="!tour.hasPrev.value" @click="tour.prev()">Back</UButton>
<UButton @click="tour.next()">{{ tour.hasNext.value ? 'Next' : 'Finish' }}</UButton>
</template>
</UPopover>
</template>
A new build-time theme.unstyled option strips Nuxt UI's default theme classes from every component, keeping only their structure and the classes you provide through class, ui or app.config.ui. This lets you bring your own design system on top of the components' logic and accessibility, or cut HTML and bundle bloat:
export default defineNuxtConfig({
modules: ['@nuxt/ui'],
css: ['~/assets/css/main.css'],
ui: {
theme: {
unstyled: true
}
}
})
[!WARNING]
This strips structural classes too (positioning, transitions, flex/grid), not just cosmetic ones. Layout-heavy components likeModal,DrawerorCalendarwill need you to re-supply their layout.
For more surgical control, slot classes can now be a (defaults) => classes function that replaces the slot's defaults instead of merging onto them. It receives the resolved defaults so you can reuse part of them, while plain strings keep merging exactly as before. It works in :ui, app.config.ui and <UTheme :ui>:
<template>
<UButton :ui="{ base: () => 'text-3xl font-bold' }" label="Button" />
</template>
Every component now shares a single focus-visible language: a soft outline halo tinted with the component's color (e.g. outline-primary/25), so the indicator stays consistent and accessible across every variant and color. Tab panels, scrollable regions and overlay links that browsers make focusable now show the halo too, instead of hiding focus entirely.
If you prefer one outline color across your whole app regardless of component color, a single global rule in your main.css does it:
*,
::before,
::after {
@apply outline-primary/25;
}
*:focus-visible,
*:has(> a:focus-visible) {
--tw-ring-color: var(--ui-primary);
}
[!NOTE]
Check out the before/after preview images in https://github.com/nuxt/ui/pull/6576.
registerMessageRef (#6275) (f99778e)icon with false (#6597) (09eb639)removeFile in slots (#6492) (4da3a5d)leave and enter events (#6596) (006324a)theme.unstyled option (#6551) (a2a8bc9)separator prop (#6392) (89b30e8)shadow prop (#6561) (d850ae6)multiple in theme (#6554) (f66eb65)transition prop (#6484) (af80a67)root option to override .nuxt-ui directory location (#6595) (cccb3d5)max-height instead of toggling pre height (#6565) (52d3c45)VNode[] (52367b1)id and aria attributes on trigger (#6572) (c3bef7a)Full Changelog: https://github.com/nuxt/ui/compare/v4.8.2...v4.9.0
