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

129
Views
¿Cómo agregar una propiedad adicional a la tipografía antd y darle estilo?

Estoy usando tipografía de antd. Descubrí que hay una propiedad llamada tipo que incluye 'secundario', 'éxito', 'advertencia', etc. Pero también me gustaría usar una propiedad personalizada adicional llamada 'título'.

 import React from 'react'; import PropTypes from 'prop-types'; import Component from './component'; export default function Title(props) { return <Component {...props} />; } Title.propTypes = { code: PropTypes.bool, copyable: PropTypes.bool, delete: PropTypes.bool, disabled: PropTypes.bool, editable: PropTypes.bool, ellipsis: PropTypes.bool, level: PropTypes.oneOf([1, 2, 3, 4, 5]), mark: PropTypes.bool, onClick: PropTypes.func, italic: PropTypes.bool, type: PropTypes.oneOf(['secondary', 'success', 'warning', 'danger']), underline: PropTypes.bool, heading: PropTypes.oneOf([ <<<<---------- 'Main-heading', 'Sub-heading', 'Accent-heading', 'Subscript-heading', ]), };

Cuando selecciono uno de los tipos de encabezado, el resultado se ve así. <h1 class="ant-typography" heading="Main-heading">Typography</h1> En este caso, ¿cómo puedo cambiar el estilo del elemento 'título'? No se reconoce como clase.

about 4 years ago · Juan Pablo Isaza
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!