Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

129
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda