Fixes nuxt#5993 Changed BlogPostProps and ChangelogVersionProps image type from Partial<HTMLImageElement> to Partial<VueImgHTMLAttributes>. This fixes TypeScript errors when using Vue's StyleValue type for the style property (string | object | array) instead of DOM's CSSStyleDeclaration. Users no longer need to cast style as `as unknown as HTMLImageElement['style']` when passing custom CSS variables or objects to the image style prop.
Use the project's internal ImgHTMLAttributes type (from src/runtime/types/html.ts) instead of Vue's ImgHTMLAttributes, consistent with Avatar.vue and other components. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
benjamincanac
changed the title
fix: use Vue ImgHTMLAttributes for image prop style type
fix(BlogPost/ChangelogVersion): use vue ImgHTMLAttributes for image prop style type
benjamincanac
changed the title
fix(BlogPost/ChangelogVersion): use vue
fix(BlogPost/ChangelogVersion): use ImgHTMLAttributes for image prop style typeImgHTMLAttributes type for image prop
solidusite added a commit to solidusite/ui that referenced this pull request
Feb 14, 2026* v4: (26 commits) fix(Table): improve perfs with `shallowRef` when watch deep is disabled (nuxt#6023) fix(ColorModeImage): add baseURL support for public paths (nuxt#6006) feat(Theme): new component (nuxt#4387) chore(readme): prevent layout shift on banner image chore(useEditorMenu): clean code docs(templates): update links docs(ai): add skills page docs: strip u prefix from component search (nuxt#6009) fix(useEditorMenu): rank filtered results by relevance chore(skills): improve & rename to `nuxt-ui` fix(BlogPost/ChangelogVersion): use `ImgHTMLAttributes` type for image prop (nuxt#6007) docs(llms): put back raw link transform after `content@3.11.1` fix(ChatMessages): allow message props to override role defaults (nuxt#6000) chore(deps): update devdependency eslint to v10 (v4) (nuxt#6019) chore(deps): update all non-major dependencies (v4) (nuxt#6015) chore(skills): add `ui` skill for usage and theming chore(readme): add tip on contributing skill feat(locale): add Belarusian language (nuxt#5972) chore(deps): update tiptap to ^3.19.0 (v4) (nuxt#5999) fix(InputMenu): prevent focus on trailing button ...
solidusite added a commit to solidusite/ui that referenced this pull request
Feb 14, 2026* v4: (57 commits) fix(Table): improve perfs with `shallowRef` when watch deep is disabled (nuxt#6023) fix(ColorModeImage): add baseURL support for public paths (nuxt#6006) feat(Theme): new component (nuxt#4387) chore(readme): prevent layout shift on banner image chore(useEditorMenu): clean code docs(templates): update links docs(ai): add skills page docs: strip u prefix from component search (nuxt#6009) fix(useEditorMenu): rank filtered results by relevance chore(skills): improve & rename to `nuxt-ui` fix(BlogPost/ChangelogVersion): use `ImgHTMLAttributes` type for image prop (nuxt#6007) docs(llms): put back raw link transform after `content@3.11.1` fix(ChatMessages): allow message props to override role defaults (nuxt#6000) chore(deps): update devdependency eslint to v10 (v4) (nuxt#6019) chore(deps): update all non-major dependencies (v4) (nuxt#6015) chore(skills): add `ui` skill for usage and theming chore(readme): add tip on contributing skill feat(locale): add Belarusian language (nuxt#5972) chore(deps): update tiptap to ^3.19.0 (v4) (nuxt#5999) fix(InputMenu): prevent focus on trailing button ...