Back to Twenty

Checkmark

packages/twenty-docs/twenty-ui/display/checkmark.mdx

2.2.01.2 KB
Original Source
<Frame> </Frame>

Represents a successful or completed action.

<Tabs> <Tab title="Usage">
jsx
import { Checkmark } from 'twenty-ui/display';

export const MyComponent = () => {
  return <Checkmark />;
};
</Tab> <Tab title="Props">

Extends React.ComponentPropsWithoutRef<'div'> and accepts all the props of a regular 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">
PropsTypeDescriptionDefault
isAnimatingbooleanControls whether the checkmark is animatingfalse
colorstringColor of the checkmark
durationnumberThe duration of the animation in seconds0.5 seconds
sizenumberThe size of the checkmark28 pixels
</Tab> </Tabs>