Files
twenty/packages/twenty-docs/l/zh/twenty-ui/display/checkmark.mdx
T
github-actions[bot] 001c2097a3 i18n - docs translations (#18231)
Created by Github action

<!-- mintlify-editor-comments:start -->
Mintlify
---
0 threads from 0 users in Mintlify

- No unresolved comments
<!-- mintlify-editor-comments:end -->

<!-- mintlify-comment-->

<a
href="https://dashboard.mintlify.com/twenty/twenty/editor/i18n-docs?source=pr_comment"
target="_blank" rel="noopener noreferrer"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg"><img
src="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg"
alt="Open in Mintlify Editor"></picture></a>

<!-- /mintlify-comment -->

Co-authored-by: github-actions <github-actions@twenty.com>
2026-02-25 16:50:28 +01:00

74 lines
1.3 KiB
Plaintext

---
title: 对勾标记
image: /images/user-guide/tasks/tasks_header.png
---
<Frame>
<img src="/images/user-guide/tasks/tasks_header.png" alt="标题" />
</Frame>
表示一个成功或已完成的动作。
<Tabs>
<Tab title="**用法**">
```jsx
import { Checkmark } from 'twenty-ui/display';
export const MyComponent = () => {
return <Checkmark />;
};
```
</Tab>
<Tab title="属性">
扩展了 `React.ComponentPropsWithoutRef<'div'>`,并接受常规 `div` 元素的所有属性。
</Tab>
</Tabs>
## 动画对勾标记
表示一个带有动画特性的对勾图标。
<Tabs>
<Tab title="用法">
```jsx
import { AnimatedCheckmark } from 'twenty-ui/display';
export const MyComponent = () => {
return (
<AnimatedCheckmark
isAnimating={true}
color="green"
duration={0.5}
size={30}
/>
);
};
```
</Tab>
<Tab title="属性">
| 属性 | 类型 | 描述 | 默认 |
| ----------- | --- | -------------- | ----- |
| isAnimating | 布尔值 | 控制对勾标记是否在动画中 | 假 |
| 颜色 | 字符串 | 对勾标记的颜色 | |
| 持续时间 | 数字 | 动画的持续时间(以秒为单位) | 0.5 秒 |
| 大小 | 数字 | 对勾标记的大小 | 28 像素 |
</Tab>
</Tabs>