# Composition
URL: /react/components/iconography/composition
Source: https://github.com/daangn/seed-design/blob/dev/docs/content/react/components/(foundation)/iconography/composition.mdx
Explains how to use icons.
## Overview
[Karrot icon library](/foundations/iconography/library) is designed to be independent (agnostic) of the design system and does not include Crispy's opinions. Sometimes you need to use icon composition patterns while using custom icons that are not in the library.
For this purpose, we provide utility components that accept icons through the `svg` attribute and connect them to the design system:
- `Icon`: Use when using icons independently or in components that display icons only.
- `PrefixIcon`, `SuffixIcon`: Use when placing icons and text together within a component.
## Icon Component
The `Icon` component is used when using icons independently or in components that display icons only.
```jsx
import { Icon } from "@seed-design/react";
import { IconHeartFill } from "@karrotmarket/react-monochrome-icon";
// Standalone icon
} />
// Button displaying only an icon
} />
```
## PrefixIcon and SuffixIcon
When placing icons and text together within a component, place `PrefixIcon` and `SuffixIcon` components as children.
```jsx
import { PrefixIcon, SuffixIcon } from "@seed-design/react";
import { ActionButton } from "seed-design/ui/action-button";
import { IconPlusFill, IconChevronRightFill } from "@karrotmarket/react-monochrome-icon";
// Place icon in front
} />
Label
// Place icon at the back
Label
} />
// Place icons on both sides
} />
Label
} />
```
This pattern is used consistently in the following components:
- `ActionButton`: Icon placement within a button
- `Button`: Icon placement within a regular button
- `ToggleButton`: Icon placement within a toggle button
- `ActionChip`: Icon placement within an action chip
- `ControlChip`: Icon placement within a control chip