e0d4492013
Created by Github action Co-authored-by: github-actions <github-actions@twenty.com>
59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
---
|
|
title: チェックマーク
|
|
image: '""'
|
|
---
|
|
|
|
<Frame>
|
|
<img src="""" alt="ヘッダー" />
|
|
</Frame>
|
|
|
|
成功したまたは完了したアクションを示します。
|
|
|
|
<Tabs>
|
|
<Tab title="使用方法">
|
|
```jsx
|
|
import { Checkmark } from 'twenty-ui/display';
|
|
|
|
export const MyComponent = () => {
|
|
return <Checkmark />;
|
|
};
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="プロパティ">
|
|
`div` 要素の全てのプロパティを受け取る他、`React.ComponentPropsWithoutRef<'div'>`を拡張します。
|
|
</Tab>
|
|
</Tabs>
|
|
|
|
## アニメーション付きチェックマーク
|
|
|
|
アニメーション機能を追加したチェックマークアイコンを示します。
|
|
|
|
<Tabs>
|
|
<Tab title="使用方法">
|
|
```jsx
|
|
import { AnimatedCheckmark } from 'twenty-ui/display';
|
|
|
|
export const MyComponent = () => {
|
|
return (
|
|
<AnimatedCheckmark
|
|
isAnimating={true}
|
|
color="green"
|
|
duration={0.5}
|
|
size={30}
|
|
/>
|
|
);
|
|
};
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="プロパティ">
|
|
| プロパティ | タイプ | 説明 | デフォルト |
|
|
| ---------- | ------ | --------------------- | ------ |
|
|
| アニメーションの有無 | ブール型 | チェックマークのアニメーションを制御します | 偽 |
|
|
| カラー | string | チェックマークの色 | |
|
|
| 継続時間 | 数 | アニメーションの持続時間(秒) | 0.5秒 |
|
|
| サイズ | 数 | チェックマークのサイズ | 28ピクセル |
|
|
</Tab>
|
|
</Tabs>
|