\n \u003C/div>\n[...]\n\u003C/template>\n```\n\nThe icon (which is and remains black) does not accept any color, while any standard implementation (icon from a downloaded icon set like mdi) does indeed change the color of an icon.\n\n(Just in case this is not an error: What kind of \"treatment\" do I have to apply to make my icon accept color?)",[],307,"closed","custom local collections do not accept props like color","2024-11-23T10:19:42Z","https://github.com/nuxt/icon/issues/307",0.666221,{"description":3189,"labels":3190,"number":3197,"owner":3146,"repository":3198,"state":3183,"title":3199,"updated_at":3200,"url":3201,"score":3202},"### Description\n\nHi there,\n\nI'd like to know, how to deal with paginated data that comes from the used API, e.g. a Laravel resource response.\n\n```\n{\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": \"1\",\n \"name\": \"Foo\",\n \"created_at\": \"2025-04-01T11:46:21+00:00\"\n },\n {\n \"id\": \"2\",\n \"name\": \"Bar\",\n \"created_at\": \"2025-04-01T11:46:21+00:00\"\n },\n ],\n \"first_page_url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=1\",\n \"from\": 1,\n \"last_page\": 14,\n \"last_page_url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=14\",\n \"links\": [\n {\n \"url\": null,\n \"label\": \"« Previous\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=1\",\n \"label\": \"1\",\n \"active\": true\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=2\",\n \"label\": \"2\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=3\",\n \"label\": \"3\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=4\",\n \"label\": \"4\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=5\",\n \"label\": \"5\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=6\",\n \"label\": \"6\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=7\",\n \"label\": \"7\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=8\",\n \"label\": \"8\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=9\",\n \"label\": \"9\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=10\",\n \"label\": \"10\",\n \"active\": false\n },\n {\n \"url\": null,\n \"label\": \"...\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=13\",\n \"label\": \"13\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=14\",\n \"label\": \"14\",\n \"active\": false\n },\n {\n \"url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=2\",\n \"label\": \"Next »\",\n \"active\": false\n }\n ],\n \"next_page_url\": \"https:\\/\\/api.example.test\\/test?page%5Bsize%5D=30&page%5Bnumber%5D=2\",\n \"path\": \"https:\\/\\/api.example.test\\/test\",\n \"per_page\": 30,\n \"prev_page_url\": null,\n \"to\": 30,\n \"total\": 394\n}\n```\n\nI am a bit intimidated by the TanStack API.",[3191,3194],{"name":3192,"color":3193},"question","d876e3",{"name":3195,"color":3196},"v3","49DCB8",3776,"ui","Use UTable with paginated data, which comes from API","2025-04-04T13:04:05Z","https://github.com/nuxt/ui/issues/3776",0.66834146,{"description":3204,"labels":3205,"number":3206,"owner":3146,"repository":3207,"state":3183,"title":3208,"updated_at":3209,"url":3210,"score":3211},"Docs: https://posthog.com/docs/libraries/js\r\n\r\nFor reference this is how I currently instrument it:\r\n\r\n```\r\nimport { Capacitor } from '@capacitor/core'\r\nimport { posthog } from 'posthog-js'\r\nimport { appVersion } from '~/shared/version'\r\n\r\nexport default defineNuxtPlugin({\r\n name: 'analytics',\r\n setup() {\r\n if (import.meta.env.TEST) {\r\n return\r\n }\r\n\r\n const config = useRuntimeConfig()\r\n const router = useRouter()\r\n\r\n if (config.public.analyticsReportingEnabled) {\r\n posthog.init(config.public.posthog.dsn, {\r\n capture_pageview: false,\r\n capture_pageleave: true,\r\n api_host: config.public.posthog.apiHost,\r\n disable_session_recording: true,\r\n advanced_disable_decide: true,\r\n advanced_disable_feature_flags: true,\r\n advanced_disable_feature_flags_on_first_load: true,\r\n enable_recording_console_log: false,\r\n autocapture: false\r\n })\r\n\r\n posthog.register({\r\n environment: config.public.appEnvironment,\r\n countryCode: config.public.appCountryCode,\r\n release: appVersion,\r\n platform: Capacitor.getPlatform(),\r\n native: Capacitor.isNativePlatform()\r\n })\r\n\r\n router.afterEach(to => {\r\n posthog.capture('$pageview', {\r\n $current_url: to.fullPath\r\n })\r\n })\r\n }\r\n\r\n return {\r\n provide: {\r\n analytics: posthog\r\n }\r\n }\r\n }\r\n})\r\n```\r\n\r\nand after the user has logged in or we detect they are already logged in on page load:\r\n\r\n```\r\nthis.analytics.identify(userId, {\r\n email\r\n roles\r\n})\r\n ```\r\n \r\n Thanks!\r\n\r\n",[],206,"scripts","Suggestion: Posthog [analytics]","2024-09-03T16:06:49Z","https://github.com/nuxt/scripts/issues/206",0.67818,{"description":3213,"labels":3214,"number":3217,"owner":3146,"repository":3198,"state":3183,"title":3218,"updated_at":3219,"url":3220,"score":3221},"### For what version of Nuxt UI are you asking this question?\n\nv3.0.0-alpha.x\n\n### Description\n\nIn my Nuxt 3 project (that uses Nuxt UI `v3.0.0-alpha9`), I have a Vue component like this:\n\n```vue\n\u003Cscript setup lang=\"ts\">\n...\n\u003C/script>\n\n\u003Ctemplate>\n \u003CUContainer class=\"section\">\n ...\n \u003C/UContainer>\n\u003C/template>\n\n\u003Cstyle scoped lang=\"scss\">\n@use \"tailwindcss\";\n\n.section + .section {\n @apply mt-8 lg:mt-12;\n}\n\u003C/style>\n```\n\nThe problem is that `@apply mt-8 lg:mt-12;` doesn't work unless I add this to my `nuxt.config.ts`:\n```\npostcss: {\n plugins: {\n \"@tailwindcss/postcss\": {}, // https://tailwindcss.com/docs/v4-beta#using-post-css\n },\n},\n```\n\nHowever, when I do this, the Nuxt UI components stop working properly (e.g., Slideover renders at the bottom of the page and with wrong styling). How can I make the `@apply ...` work without breaking the Nuxt UI components?\n\nThis is my `package.json`:\n```json\n{\n \"name\": \"frontend\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"postinstall\": \"husky install && nuxt prepare\",\n \"dev\": \"nuxt dev\",\n \"build\": \"nuxt build\",\n \"preview\": \"nuxt preview\"\n },\n \"dependencies\": {\n \"@nuxt/ui\": \"^3.0.0-alpha.9\",\n \"nuxt\": \"latest\",\n \"nuxt-svgo\": \"latest\",\n \"vue\": \"latest\",\n \"vue-router\": \"latest\"\n },\n \"devDependencies\": {\n \"@commitlint/cli\": \"latest\",\n \"@commitlint/config-conventional\": \"latest\",\n \"husky\": \"latest\",\n \"sass\": \"latest\"\n }\n}\n```\n\nThis is my `nuxt.config.ts`:\n```ts\n// https://nuxt.com/docs/api/configuration/nuxt-config\nexport default defineNuxtConfig({\n compatibilityDate: \"2024-04-03\",\n devtools: { enabled: false },\n modules: [\"@nuxt/ui\", \"nuxt-svgo\"],\n css: [\"@/assets/css/main.css\"],\n // postcss: {\n // plugins: {\n // \"@tailwindcss/postcss\": {}, // https://tailwindcss.com/docs/v4-beta#using-post-css\n // },\n // },\n appConfig: {\n // https://ui3.nuxt.dev/getting-started/theme#colors\n ui: {\n colors: {\n primary: \"primary\", // Defined in `assets/css/theme.css`\n secondary: \"secondary\", // Defined in `assets/css/theme.css`\n },\n },\n },\n});\n```\n\nThis is my `assets/main.css`:\n```css\n/* https://ui3.nuxt.dev/getting-started/installation/nuxt#import-tailwind-css-and-nuxt-ui-in-your-css */\n@import \"tailwindcss\";\n@import \"@nuxt/ui\";\n```",[3215,3216],{"name":3192,"color":3193},{"name":3195,"color":3196},2772,"@apply Tailwind CSS class in a component's `\u003Cstyle>` tag","2024-12-09T11:14:28Z","https://github.com/nuxt/ui/issues/2772",0.68030316,{"description":3223,"labels":3224,"number":3229,"owner":3146,"repository":3230,"state":3183,"title":3231,"updated_at":3232,"url":3233,"score":3234},"I've explored other font providers, looks like `fontsource` is also quite promising.\r\n\r\nCurrently most of its fonts are from Google Fonts, along with some icons and some other fonts. It's also the service that Cloudflare Fonts is fetching from.\r\n\r\n@danielroe Would you like to include this font provider? If so, I'd like to work on it.\r\n\r\nDocs: https://fontsource.org/docs",[3225,3226],{"name":3168,"color":3169},{"name":3227,"color":3228},"provider","1161A4",65,"fonts","feat: fontsource provider","2024-03-20T13:12:12Z","https://github.com/nuxt/fonts/issues/65",0.6803974,{"description":3236,"labels":3237,"number":3238,"owner":3146,"repository":3147,"state":3183,"title":3239,"updated_at":3240,"url":3241,"score":3242},"After installing an `@iconify-json/*` package (`@iconify-json/mdi` in my scenario), the following error gets spit out when the `/api/_nuxt_icon/:collection` endpoint is called\r\n\r\n\r\n\r\nIt seems to be caused by the dynamic import missing the json import attribute on line 120 of `module.ts` https://github.com/nuxt/icon/blob/85a0e7b940725561f35656d75a99179f88cecef8/src/module.ts#L120 \r\n\r\nAdding `{ with: { type: 'json' } }` as a second parameter resolves the error for me:\r\n\r\n```js\r\nimport('@iconify-json/${collection}/icons.json', { with: { type: 'json' } }).then(m => m.default)`\r\n```",[],186,"Locally installed `@iconify-json/*` packages result in 'needs an import attribute of type \"json\"' error","2024-07-15T15:35:07Z","https://github.com/nuxt/icon/issues/186",0.68492067,{"description":3244,"labels":3245,"number":3249,"owner":3146,"repository":3250,"state":3183,"title":3251,"updated_at":3252,"url":3253,"score":3254},"I got a \n```\n---\ntitle: ''\n---\n```\n\nWe should not set the `title` and `description` key if empty since Content v2 will automatically takes the first `\u003Ch1>` to generate it.",[3246],{"name":3247,"color":3248},"bug","ff281a",505,"nuxt.com","[Project] Don't generate the front-matter if values are empty","2023-02-15T12:32:27Z","https://github.com/nuxt/nuxt.com/issues/505",0.68976486,["Reactive",3256],{},["Set"],["ShallowReactive",3259],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fkXVVNChlXL19C6qtpklWKL70kBzL8V-3JMjTMPFDlaM":-1},"/nuxt/icon/301"]