
Vibe Coding a Collaborative Editor with Comment Support with Nuxt UI and Jazz
VueSchool
autocomplete prop to mode to free up HTML attribute (#6474)The boolean autocomplete prop introduced in v4.6.0 collided with the standard HTML autocomplete attribute used for browser autofill (address-line1, one-time-code, email, etc.). It has been renamed to mode which accepts 'combobox' | 'autocomplete' (defaults to combobox). The HTML autocomplete attribute now falls through to the inner input like other form components.
- <UInputMenu autocomplete :items="items" />
+ <UInputMenu mode="autocomplete" :items="items" />
The Theme component can now override default prop values for all descendant components. Pass a props object where keys are component names and values are their prop overrides:
<template>
<UTheme
:props="{
tooltip: { delayDuration: 0, arrow: true },
button: { color: 'neutral', variant: 'subtle', size: 'lg' },
input: { size: 'lg' }
}"
>
<UTooltip text="Tooltip">
<UButton label="Save" />
</UTooltip>
<UInput placeholder="Search..." />
</UTheme>
</template>
Explicit props on a component always take priority. Theme components can be nested (innermost wins) and propagate through the entire tree via provide / inject.
The ContentSearch component now supports FTS5 full-text search via the new search prop and the useSearchCollection composable (nuxt/content#3787, released in @nuxt/content v3.14.0). Instead of loading all content upfront with files and filtering client-side with Fuse.js, you can now run async queries with highlighted snippets:
<script setup lang="ts">
const { search, status, init } = useSearchCollection('content', {
immediate: false,
ignoredTags: ['style']
})
const { open } = useContentSearch()
watch(open, (value) => {
if (value && status.value === 'idle') {
init()
}
})
</script>
<template>
<UContentSearch :search="search" :search-status="status" />
</template>
You can check out the new search on https://ui.nuxt.com or https://nuxt.com.
autocomplete prop to mode to free up HTML attribute (#6474)The boolean autocomplete prop introduced in v4.6.0 collided with the standard HTML autocomplete attribute used for browser autofill (address-line1, one-time-code, email, etc.). It has been renamed to mode which accepts 'combobox' | 'autocomplete' (defaults to combobox). The HTML autocomplete attribute now falls through to the inner input like other form components.
- <UInputMenu autocomplete :items="items" />
+ <UInputMenu mode="autocomplete" :items="items" />
color prop (#6405) (6f2396f)color prop (#6406) (955dac1)body slot and improve actions alignment (#6460) (48685b6)color prop and header slot (#6407) (c6ce8ca)submitOnEnter prop to control Enter behavior (b597f90)highlight prop for error ring styling (a0deee4)useSearchCollection (#6432) (a1bef8b)storageOptions prop (8f0101b)icon prop and leading slot (e6ea707)position prop (#6415) (844660a)wrap-break-word to content slot (#6476) (eb468e6)useTokenSearch is enabled (898fbce)theme.prefix to hardcoded utility classes (f51b1e8)ui.trigger prop to trigger elements (252b906)e.code for alt shortcuts to handle macOS key remapping (231f156)disabled attribute to button variant (2890c83)trailing: false over default trailingIcon (#6457) (65b47ce)autocomplete prop to mode to free up HTML attribute (#6474) (2799fa6)@nuxtjs/mdc when using content option (89f7778)#build/ui.css fallback for tooling (083c2a9)value optional (f317c7f)ClassValue leaves (cac3860)Full Changelog: https://github.com/nuxt/ui/compare/v4.7.1...v4.8.0
