Icon
Overview

- Overview
- React
Import
import { Icon } from '@wpmedia/arc-ui-icon'
Usage
The Icon component returns an <svg>
tag with corresponding icon path and labels.
caution
Avoid adding event handlers directly to an Icon
component. If you need a clickable icon, use IconButton
instead.
interfaceΒ IconProps
Props | Description |
---|---|
color (optional) | undefined | string = currentColor Consider using currentColor before using this prop |
desc (optional) | undefined | string = '' Custom accessibility description (more info) |
name | "ellipsis" | "warning" | "success" | "danger" | "publish" | "filter" | "filterWebsite" | "trash" | "arrowUp" | "arrowDown" | "arrowLeft" | "arrowRight" | "checkmark" | "close" | "copy" | "editDisplaySettings" | "expandArea" | "focalPoint" | "gridView" | "gridViewLarge" | "gridViewMedium" | "gridViewSmall" | "listView" | "maximizeGroup" | "minimizeGroup" | "moveToBeginning" | "moveToEnd" | "moveToGallery" | "removeImage" | "coverImage" | "openColorPicker" | "search" | "add" | "addInternalNote" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "date" | "download" | "duplicate" | "edit" | "gallery" | "help" | "hide" | "photo" | "pitch" | "playController" | "playThumbnail" | "preview" | "refresh" | "settings" | "task" | "time" Name of the desired icon. The allowable names consist of all available icons. |
size (optional) | undefined | string = small Size scale value |
title (optional) | undefined | string = each icon contains a default title Custom accessibility title (more info) |
To see accessibility title and description, view the page source and see the SVG's title
attribute.
Copy
Open in Playroom