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

670
Vistas
How to set border-radius to ant design Select component

I am using ant design and I want to change border-radius of Select component but it is not working. The code is below. And i tried to classname method but it doesn't work.

import React from 'react'
import { Select } from 'antd'
const { Option } = Select;

const Dropdown = ({placeholder ,...restProps}) => {
 return (
 <Select
    style={style}
    {...restProps}
    placeholder={placeholder}
 >
 </Select>
 )
}

const style = {
 width: 450,
 borderRadius: '10px',
 margin:3
}
export default Dropdown;
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you inspect the element you could find that the style is going to the div with classname ant-select. But the border is set in the inner div element with classname ant-select-selector.

Ant Design doesnt give any prop to override the style for it, but you can override by using CSS.

you can wrap with a custom div and provide CSS to override the style set by ant. Example,

 <div className="my-select-container">
    <Select
     style={style}
     {...restProps}
     placeholder={placeholder}
    >
    </Select>
 </div>

and in CSS file,

.my-select-container .ant-select .ant-select-selector {
  border-radius:20px;
}
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