title
свойство Card
принимает ReactNode
, поэтому вы можете отобразить любой реагирующий компонент, в частности его стиль:
import { Card, Typography } from 'antd';
const { Title } = Typography;
const App = () => (
<Card title={<Title level={2}>Custom Title</Title>}>
<p>Card Content</p>
</Card>
);
title
-Название карты - string|ReactNode
![Edit react-antd-styled-template](https://codesandbox.io/static/img/play-codesandbox.svg)