Skip to content

Empty slot for image component should be styleable #1488

@bcardarella

Description

@bcardarella

I may be incorrect in my approach, but I want to to set the frame for the loading state of an AsyncImage. I went to add a style to the :empty slot on the <.image/> component but it didn't exist. I can add it myself but I'm curious if this is the correct approach.

My motivation is the pokemon battle app and when I jam the Vote button rapidly I get UI jank when one of the images doesn't load fast enough. I was hoping to set the loading state's frame to the same size as the sucess image to prevent the jank.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions