Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 1x | import React from "react"; import { Tag } from "@tencent/tea-component/lib/tag"; export default function TagThemeExample() { return ( <> <Tag theme="primary">这是一个标签</Tag> <Tag theme="success">这是一个标签</Tag> <Tag theme="warning">这是一个标签</Tag> <Tag theme="error">这是一个标签</Tag> <br /> <Tag theme="primary" dark> 这是一个标签 </Tag> <Tag dark theme="success"> 这是一个标签 </Tag> <Tag dark theme="warning"> 这是一个标签 </Tag> <Tag dark theme="error"> 这是一个标签 </Tag> </> ); } |