Skip to content

Commit

Permalink
feat: add required alt, width & height
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Jun 18, 2023
1 parent 0a3a78e commit 9be4622
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/components/CldImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ interface AssetOptions {
interface CldImageProps {
loading?: "eager" | "lazy";
fetchPriority?: "high" | "low" | "auto";
// Adding below as required props to promote good patterns in developing images
alt: string;
width: string | number;
height: string | number;
}
const props = defineProps<AssetOptions & CldImageProps>()
Expand Down

0 comments on commit 9be4622

Please sign in to comment.