\n\u003C/template>\n\n\u003Cscript setup>\nconst translationField = ref(null)\n\nfunction nextCard() {\n translationField.value.focus() // throws: 'focus is not a function'\n \n nextTick(() => {\n translationField.value.focus() // same error\n })\n\n // below works ok\n nextTick(() => {\n const input = translationField.value?.$el?.querySelector('input')\n if (input) {\n input.focus()\n }\n })\n}\n\u003C/script>\n```\n\n\n### Description\nStandard Vue method of using template ref (for setting a focus, here) throws: 'focus() is not a function'\nIn the above code snippet I included workaround (credits to Sonnet 3.5)\nTried it dozen of times and checked this place to see if it has not been solved earlier.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[2942,2943,2944],{"name":2868,"color":2869},{"name":2871,"color":2872},{"name":2874,"color":2875},3644,"\u003CUInput> template ref does not work","2025-03-21T13:14:18Z","https://github.com/nuxt/ui/issues/3644",0.68708366,{"description":2951,"labels":2952,"number":2953,"owner":2877,"repository":2877,"state":2901,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Environment\n\nIt's not particularly relevant to the docs y'all host, but if you want to know, here's my environment info:\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v18.12.1`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `npm@8.19.2`\r\n- Builder: `vite`\r\n- User Config: `title`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nhttps://nuxt.com/modules/i18n\r\nhttps://nuxt.com/modules/tailwindcss\n\n### Describe the bug\n\nCode snippets' text is in a mid-to-dark grey, dark blue, and dark orange on a black background making them neigh impossible to read. (The bright blue `>` prompts on the black background also cause my eyes to wig out a bit, but that might just be me. The contrast definitely isn't.)\r\n\r\n\u003Cimg width=\"1456\" alt=\"lighthouse\" src=\"https://user-images.githubusercontent.com/7552754/206815045-19717335-9107-4f9e-9989-ee0a233f1227.png\">\r\n\r\n\r\n\r\n\r\n\n\n### Additional context\n\nThis is happening in both Firefox 107.0.1 and Chrome 108.0.5359.98 on macOS 10.15.7 with the operating system set to \"Light\" Appearance.\n\n### Logs\n\n_No response_",[],15823,"Module Docs: Almost no contrast on code snippets","2023-01-20T14:16:02Z","https://github.com/nuxt/nuxt/issues/15823",0.69893223,{"description":2951,"labels":2959,"number":2972,"owner":2877,"repository":2877,"state":2901,"title":2954,"updated_at":2973,"url":2974,"score":2975},[2960,2963,2966,2969],{"name":2961,"color":2962},"documentation","5319e7",{"name":2964,"color":2965},"3.x","29bc7f",{"name":2967,"color":2968},"pending triage","E99695",{"name":2970,"color":2971},"⛔️ can be closed","484893",15619,"2023-02-14T08:34:55Z","https://github.com/nuxt/nuxt/issues/15619",0.6997501,{"description":2977,"labels":2978,"number":2980,"owner":2877,"repository":2878,"state":2901,"title":2981,"updated_at":2982,"url":2983,"score":2984},"### Description\n\nI just tried the example about autoplay in [UCarousel](https://ui.nuxt.com/components/carousel#autoplay), but with TypeScript. \n\n```vue\n\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n images: string[];\n}>();\n\nconst carousel = useTemplateRef('carouselGallery');\n\nonMounted(() => {\n setInterval(() => {\n if (!carousel.value) return;\n\n if (carousel.value.page === carousel.value.pages) {\n return carousel.value.select(0);\n }\n\n carousel.value.next();\n }, 5000);\n});\n\u003C/script>\n\n\u003Ctemplate>\n \u003CUCarousel\n ref=\"carouselGallery\"\n v-slot=\"{ item }\"\n :items=\"props.images\"\n :ui=\"{\n item: 'basis-full',\n indicators: { wrapper: 'bg-black/70 w-min px-2.5 py-1.5 gap-1 left-4 rounded-xl' },\n }\"\n class=\"overflow-hidden\"\n indicators\n >\n \u003Cimg :src=\"item\" class=\"w-full\" draggable=\"true\" />\n \u003C/UCarousel>\n\u003C/template>\n```\n\nAnd I get some TypeScript errors:\n\nProperty 'page' does not exist on type 'CreateComponentPublicInstanceWithMixins(...)\nProperty 'select' does not exist on type 'CreateComponentPublicInstanceWithMixins(...)\nProperty 'next' does not exist on type 'CreateComponentPublicInstanceWithMixins(...)\n\nHow should I correctly infer the type for UCarousel?\n\nNuxt v3.15.1\nNuxtUI v2.20.0",[2979],{"name":2931,"color":2932},3053,"How to properly use UCarousel API with TypeScript","2025-04-22T13:44:43Z","https://github.com/nuxt/ui/issues/3053",0.7031272,["Reactive",2986],{},["Set"],["ShallowReactive",2989],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f1btt_NCtHS2ZZmvx-NJvvaDaeyN9wDV8YpenvSBoaJs":-1},"/nuxt/ui/2282"]