@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
71 lines (49 loc) • 3.51 kB
Markdown
<div align="center">
[](https://docs.elgato.com/resources/icons)
# Elgato Icons
[](https://elgato.com)
[](https://discord.gg/GehBUcu627)
[](https://github.com/elgatosf/icons/actions)
</div>
Discover icons used throughout the Elgato ecosystem, commonly found in Stream Deck, Wave Link, Camera Hub, Capture, and Marketplace. Mix, match, and curate your own icon packs based on our design language.
## Usage
```bash
npm install @elgato/icons
```
### JavaScript Variables
Icons can be imported as SVG strings from `@elgato/icons/{s,m,l}`, for example:
```ts
import { iconLogoElgato } from "@elgato/icons/l";
iconLogoElgato; // SVG string of the Elgato logo, large (l) size.
```
Icons are available in up to three sizes, small (s), medium (m), and large (l).
- `@elgato/icons/s` — optimized for 16 × 16 px.
- `@elgato/icons/m` — optimized for 20 × 20 px.
- `@elgato/icons/l` — optimized for 24 × 24 px.
### React Components
Icons can be imported as React components from `@elgato/icons/react`, for example
```tsx
import { IconLogoElgato } from "@elgato/icons/react";
export default function MyComponent() {
return (
<div className="icon-wrapper">
<IconLogoElgato size="m" />
</div>
);
};
```
Icons are available in up to three sizes, small (s), medium (m), and large (l), and the preferred size can be specified using the `size` property. If the preferred size does not exist, the default size will be used.
### SVG Files
All original SVG files are distributed with this package, and can be found within the `svg/` directory.
```
.
├── svg/
| └── l/
│ ├── m/
│ ├── s/
| │ ├── ...
| │ ├── warning.svg
| │ ├── window--filled.svg
| │ └── window.svg
└── ...
```