# Icons

Source: https://ecosphere.dev/docs/foundations/icons (Ecosphere 1.5). Install `vue-ecosphere` for Vue 3 or `react-ecosphere` for React 18.2+/19: same components, props, markup and stylesheet.

RemixIcon 4.5.0, one set, drawn as a font and shipped with the system. Swapping one ri- name for another is the whole of adding an icon.

`import { EcoIcon } from "vue-ecosphere"`

## Using EcoIcon

The glyph inherits colour and size from its parent, so an icon never carries its own colour rule: 16px in a btn, 14px in a btn--sm, 18px in an iconbtn, 38px in an empty__ico. Give an icon-only control an aria-label. Never inline an SVG for an icon.

Vue (vue-ecosphere):

```vue
<EcoIcon name="add-line" />                    <!-- decorative: aria-hidden -->
<EcoIcon name="error-warning-line" label="Warning" />  <!-- meaningful: role="img" -->

<!-- or the raw markup -->
<i class="ri-add-line" aria-hidden="true"></i>
```

React (react-ecosphere):

```tsx
<EcoIcon name="add-line" />                           {/* decorative: aria-hidden */}
<EcoIcon name="error-warning-line" label="Warning" /> {/* meaningful: role="img" */}

{/* or the raw markup */}
<i className="ri-add-line" aria-hidden="true"></i>
```

## Common names

A starting set. All 3,036 RemixIcon glyphs are available — select a tile to copy its name.

48 icons

- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 

## API

Vue (vue-ecosphere):

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `name` | `string` | — | Required. RemixIcon name without ri- (a full ri-… name also works). |
| `label` | `string` | — | Accessible name. Omit for a decorative icon, which is then aria-hidden. |

React (react-ecosphere):

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `name` | `string` | — | Required. RemixIcon name without ri- (a full ri-… name also works). |
| `label` | `string` | — | Accessible name. Omit for a decorative icon, which is then aria-hidden. |
