Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support customize placeholder class #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

storyn26383
Copy link

With this PR, we can customize placeholder class:

<client-only placeholder="loading" placeholder-class="my-placeholder-class">
  <comments />
</client-only>

And we will get:

<div class="my-placeholder-class">
  loading
</div>

@iamandrewluca
Copy link
Contributor

I think you can achieve this using the simple class attribute 🤔

<client-only placeholder="loading" class="my-placeholder-class">
  <comments />
</client-only>
<div class="my-placeholder-class">
  loading
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants