Skip to content

Commit 83ad80b

Browse files
authored
chore: remove redundant alt prop from Image component (#105)
* chore: remove unused `alt` prop from image components in documentation and implementation * chore: remove `alt` attribute from image component documentation
1 parent f143f66 commit 83ad80b

File tree

2 files changed

+0
-4
lines changed
  • apps/www/content/3.components/5.utilities
  • packages/elements/src/image

2 files changed

+0
-4
lines changed

apps/www/content/3.components/5.utilities/image.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Copy and paste the following files into the same folder.
3838
3939
interface Props extends Experimental_GeneratedImage {
4040
class?: string
41-
alt?: string
4241
}
4342
4443
const props = defineProps<Props>()
@@ -53,7 +52,6 @@ Copy and paste the following files into the same folder.
5352
5453
<template>
5554
<img
56-
:alt="props.alt"
5755
:class="classes"
5856
:src="src"
5957
v-bind="$attrs"

packages/elements/src/image/Image.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { computed } from 'vue'
66
77
interface Props extends Experimental_GeneratedImage {
88
class?: HTMLAttributes['class']
9-
alt?: string
109
}
1110
1211
const props = defineProps<Props>()
@@ -21,7 +20,6 @@ const src = computed(() => `data:${props.mediaType};base64,${props.base64}`)
2120

2221
<template>
2322
<img
24-
:alt="props.alt"
2523
:class="classes"
2624
:src="src"
2725
v-bind="$attrs"

0 commit comments

Comments
 (0)