nuxt / nuxt/image

NuxtImg props based on the provider

Open
#1,635 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement provider
Dominant language
TypeScript
Stars
1.5k
Forks
331
Avg merge
19h 52m
Merged PRs (30d)
9

Description

Hey there,

Daniel Roe suggested that the NuxtImg component could be typed based on the selected provider.

I wonder how we should implement that. Should it be based on the globally selected provider option? Or the local component prop provider option? Or combination of both?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the NuxtImg component's prop typing and how global and local provider options are resolved. Decide which provider source takes precedence, then define what provider-specific props should be accepted and verify the resulting types; the issue names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.