react-window-ui icon indicating copy to clipboard operation
react-window-ui copied to clipboard

how to render custom bar title?

Open dubiao opened this issue 4 years ago • 1 comments

It works fine but without a title was rendered. Is there any way to render <Component /> to the bar?

image

<Browser topbarTitle={<span>afsef</span>}>
      <h3>Browser</h3>
      <p>Use {"<Browser/>"} to frame browser content!</p>
</Browser>

I'd like to render something like a Safari bowser shows:

image

dubiao avatar Dec 15 '21 05:12 dubiao

Hey @dubiao, thanks for creating the issue. It's not possible due to these components being composed mostly by CSS. The topbar title uses CSS content and one cannot inject elements there, AFAIK.

I'm happy to discuss adding the feature if you'd like to plan the implementation.

coston avatar Dec 15 '21 14:12 coston