For some components it would be nice to pass a "prefix" and a "suffix" component so that the component itself can be rendered in the middle.
For example, for the component ResultsPerPage it would be nice to have:
<ResultsPerPage
prefix={'Show '}
suffix={' results per page'}
so that it then renders:
Show 30 results per page
On top of that, if the component does not render because there are 0 results, the prefix and suffix are also hidden. Currently it is not possible.
For some components it would be nice to pass a "prefix" and a "suffix" component so that the component itself can be rendered in the middle. For example, for the component
ResultsPerPage
it would be nice to have:so that it then renders:
Show 30 results per page
On top of that, if the component does not render because there are 0 results, the prefix and suffix are also hidden. Currently it is not possible.