8cadd00d34
Created by Github action --------- Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: github-actions <github-actions@twenty.com>
70 lines
1.7 KiB
Plaintext
70 lines
1.7 KiB
Plaintext
---
|
||
title: Checkmark
|
||
image: /images/user-guide/tasks/tasks_header.png
|
||
---
|
||
|
||
<Frame>
|
||
<img src="/images/user-guide/tasks/tasks_header.png" alt="Header" />
|
||
</Frame>
|
||
|
||
Позначає успішно виконану дію.
|
||
|
||
<Tabs>
|
||
<Tab title="Usage">
|
||
|
||
```jsx
|
||
import { Checkmark } from 'twenty-ui/display';
|
||
|
||
export const MyComponent = () => {
|
||
return <Checkmark />;
|
||
};
|
||
```
|
||
|
||
</Tab>
|
||
|
||
<Tab title="Props">
|
||
|
||
Розширює `React.ComponentPropsWithoutRef<'div'>` і приймає всі властивості звичайного елемента `div`.
|
||
|
||
</Tab>
|
||
|
||
</Tabs>
|
||
|
||
## Animated Checkmark
|
||
|
||
Represents a checkmark icon with the added feature of animation.
|
||
|
||
<Tabs>
|
||
|
||
<Tab title="Usage">
|
||
|
||
```jsx
|
||
import { AnimatedCheckmark } from 'twenty-ui/display';
|
||
|
||
export const MyComponent = () => {
|
||
return (
|
||
<AnimatedCheckmark
|
||
isAnimating={true}
|
||
color="green"
|
||
duration={0.5}
|
||
size={30}
|
||
/>
|
||
);
|
||
};
|
||
```
|
||
|
||
</Tab>
|
||
|
||
<Tab title="Props">
|
||
|
||
| Властивості | Тип | Опис | За замовчуванням |
|
||
| ----------- | ----------- | ------------------------------------------- | -------------------------- |
|
||
| isAnimating | булевий тип | Controls whether the checkmark is animating | хибно |
|
||
| колір | рядок | Color of the checkmark | |
|
||
| тривалість | число | Тривалість анімації в секундах | 0.5 секунд |
|
||
| розмір | число | The size of the checkmark | 28 пікселів |
|
||
|
||
</Tab>
|
||
|
||
</Tabs>
|