react-placeholder icon indicating copy to clipboard operation
react-placeholder copied to clipboard

Spread/pass props on custom placeholders

Open burkeshartsis opened this issue 4 years ago • 0 comments

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'}.

burkeshartsis avatar Jul 24 '20 01:07 burkeshartsis