Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
How to show only Max Window Icon in ReactJS?

I want to ask how to display the Sample Title Bar in the Icon Window Max section only and this is my coding.

import React from 'react'
import { TitleBar } from 'react-desktop/windows';

export default function App() {
  return (
    <div style={{
      display: 'block', width: 400, paddingLeft: 30
    }}>
      <h4>React Desktop Windows TitleBar Component</h4>
      <TitleBar
        title="Sample TitleBar"
        controls
        isMaximized="true"
        background="orange"
      />
    </div>
  );
}

And want to show the Icon Window Max
before: enter image description here

after: enter image description here

Here is the code I got the link coding from: Link

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As pert react desktop documentation they only provided support to hide/show all three control, there is no such specific prop which we can use to hide individual tool from title bar.

So if we want to hide the other two option apart from maximize we can use css and overwrite existing css in following way

.titlebar a[title="Close"],
.titlebar a[title="Minimize"] {
  display: none !important;
}

I have given class to Titlebar component and hide element using css.

Codesandbox

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!