e0d4492013
Created by Github action Co-authored-by: github-actions <github-actions@twenty.com>
74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
---
|
|
title: アイコン
|
|
image: /images/user-guide/objects/objects.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/objects/objects.png" alt="ヘッダー" />
|
|
</Frame>
|
|
|
|
アプリ全体で使用されるアイコンの一覧。
|
|
|
|
## Tabler Icons
|
|
|
|
アプリ全体で React 向けの Tabler Icons を使用しています。
|
|
|
|
<Tabs>
|
|
<Tab title="インストール">
|
|
<br />
|
|
|
|
```
|
|
yarn add @tabler/icons-react
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="プロパティ">
|
|
各アイコンをコンポーネントとしてインポートできます。 例はこちら:
|
|
|
|
<br />
|
|
|
|
```jsx
|
|
import { IconArrowLeft } from "@tabler/icons-react";
|
|
|
|
export const MyComponent = () => {
|
|
return <IconArrowLeft color="red" size={48} />;
|
|
};
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="プロパティ">
|
|
| プロパティ | タイプ | 説明 | デフォルト |
|
|
| ----- | ------ | ------------------- | ------------ |
|
|
| サイズ | 数 | アイコンの高さと幅(ピクセル単位) | 24 |
|
|
| カラー | string | アイコンの色 | currentColor |
|
|
| ストローク | 数 | アイコンのストローク幅(ピクセル単位) | 2 |
|
|
</Tab>
|
|
</Tabs>
|
|
|
|
## カスタムアイコン
|
|
|
|
Tablerアイコンに加えて、アプリにはいくつかのカスタムアイコンも使用されています。
|
|
|
|
### アイコンアドレス帳
|
|
|
|
アドレス帳のアイコンを表示します。
|
|
|
|
<Tabs>
|
|
<Tab title="使用方法">
|
|
```jsx
|
|
import { IconAddressBook } from 'twenty-ui/display';
|
|
|
|
export const MyComponent = () => {
|
|
return <IconAddressBook size={24} stroke={2} />;
|
|
};
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="プロパティ">
|
|
| プロパティ | タイプ | 説明 | デフォルト |
|
|
| ----- | --- | ------------------- | ----- |
|
|
| サイズ | 数 | アイコンの高さと幅(ピクセル単位) | 24 |
|
|
| ストローク | 数 | アイコンのストローク幅(ピクセル単位) | 2 |
|
|
</Tab>
|
|
</Tabs>
|