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

Spread/pass props on custom placeholders #92

Open
burkeshartsis opened this issue Jul 24, 2020 · 0 comments
Open

Spread/pass props on custom placeholders #92

burkeshartsis opened this issue Jul 24, 2020 · 0 comments
Labels

Comments

@burkeshartsis
Copy link

When writing custom placeholders I would like my custom placeholder to have access to the props passed ReactPlaceholder. There are a number of ways you could make this intuitive but the easiest way would just be to pass down the ...rest here. An example usage would be... I have a custom placeholder and I want to pass an aria accessibility role as a prop on ReactPlaceholder like role={'progressbar'}.

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

No branches or pull requests

2 participants