Skip to content

Placeholder slot for <NuxtImg> #1307

@DamianGlowala

Description

@DamianGlowala

I've been thinking of how to achieve more sophisticated placeholders using <NuxtImg> than what the placeholder prop allows for. Being able to define the placeholder in a slot would allow for greater flexibility:

<NuxtImg>
  <template #placeholder>
    <SkeletonLoader />
  </template>
</NuxtImg>

If this is a desirable addition, I am willing to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions