--- order: 9 title: zh-CN: 多彩徽标 en-US: Colorful Badge --- ## zh-CN 我们添加了多种预设色彩的徽标样式,用作不同场景使用。如果预设值不能满足你的需求,可以设置为具体的色值。 ## en-US We preset a series of colorful Badge styles for use in different situations. You can also set it to a hex color string for custom color. ```jsx import { Badge, Divider } from 'antd'; const colors = [ 'pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime', ]; ReactDOM.render( <> Presets
{colors.map(color => (
))}
Custom <>


, mountNode, ); ``` ```css .ant-tag { margin-bottom: 8px; } ```