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.4 KiB
Plaintext
70 lines
1.4 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>
|
|
|
|
Repræsenterer en vellykket eller afsluttet handling.
|
|
|
|
<Tabs>
|
|
<Tab title="Usage">
|
|
|
|
```jsx
|
|
import { Checkmark } from 'twenty-ui/display';
|
|
|
|
export const MyComponent = () => {
|
|
return <Checkmark />;
|
|
};
|
|
```
|
|
|
|
</Tab>
|
|
|
|
<Tab title="Props">
|
|
|
|
Udvider `React.ComponentPropsWithoutRef<'div'>` og accepterer alle egenskaberne for et almindeligt `div` element.
|
|
|
|
</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">
|
|
|
|
| Egenskaber | Type | Beskrivelse | Standard |
|
|
| ---------- | ------- | ------------------------------------------- | ------------ |
|
|
| animerer | boolean | Controls whether the checkmark is animating | falsk |
|
|
| farve | streng | Color of the checkmark | |
|
|
| varighed | tal | Varigheden af animationen i sekunder | 0,5 sekunder |
|
|
| størrelse | tal | The size of the checkmark | 28 pixel |
|
|
|
|
</Tab>
|
|
|
|
</Tabs>
|