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: Vinkje
|
|
image: /images/user-guide/tasks/tasks_header.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/tasks/tasks_header.png" alt="Header" />
|
|
</Frame>
|
|
|
|
Stelt een succesvolle of voltooide actie voor.
|
|
|
|
<Tabs>
|
|
<Tab title="Usage">
|
|
|
|
```jsx
|
|
import { Checkmark } from 'twenty-ui/display';
|
|
|
|
export const MyComponent = () => {
|
|
return <Checkmark />;
|
|
};
|
|
```
|
|
|
|
</Tab>
|
|
|
|
<Tab title="Props">
|
|
|
|
Breidt `React.ComponentPropsWithoutRef<'div'>` uit en accepteert alle eigenschappen van een regulier `div`-element.
|
|
|
|
</Tab>
|
|
|
|
</Tabs>
|
|
|
|
## Geanimeerd Vinkje
|
|
|
|
Stelt een vinkje-icoon voor met de extra functie van animatie.
|
|
|
|
<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">
|
|
|
|
| Props | Soort | Beschrijving | Standaard |
|
|
| ----------- | ---------- | ------------------------------------------- | --------------------------- |
|
|
| isAnimating | booleaan | Controls whether the checkmark is animating | vals |
|
|
| kleur | tekenreeks | Kleur van het vinkje | |
|
|
| duur | nummer | De duur van de animatie in seconden | 0.5 seconds |
|
|
| grootte | nummer | De grootte van het vinkje | 28 pixels |
|
|
|
|
</Tab>
|
|
|
|
</Tabs>
|