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.5 KiB
Plaintext
70 lines
1.5 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>
|
|
|
|
Egy sikeres vagy befejezett műveletet jelöl.
|
|
|
|
<Tabs>
|
|
<Tab title="Usage">
|
|
|
|
```jsx
|
|
import { Checkmark } from 'twenty-ui/display';
|
|
|
|
export const MyComponent = () => {
|
|
return <Checkmark />;
|
|
};
|
|
```
|
|
|
|
</Tab>
|
|
|
|
<Tab title="Props">
|
|
|
|
Kiterjeszti a `React.ComponentPropsWithoutRef<'div'>`-t, és elfogadja egy szabályos `div` elem összes tulajdonságát.
|
|
|
|
</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">
|
|
|
|
| Tulajdonságok | Típus | Leírás | Alapértelmezett |
|
|
| ------------- | ------- | ------------------------------------------- | --------------- |
|
|
| isAnimating | boolean | Controls whether the checkmark is animating | hamis |
|
|
| szín | string | Color of the checkmark | |
|
|
| időtartam | szám | Az animáció időtartama másodpercekben | 0,5 másodperc |
|
|
| méret | szám | The size of the checkmark | 28 képpont |
|
|
|
|
</Tab>
|
|
|
|
</Tabs>
|