Icon Component
The icon-v1 component provides access to a comprehensive set of SVG icons.
Basic Usage
Section titled “Basic Usage”<icon-v1 name="check"></icon-v1>Available Icons
Section titled “Available Icons”DS One includes 50+ icons:
check,close,openup,down,left,rightsearch,delete,duplicatestar,unstarsee,unseelock,unlock- And many more…
Attributes
Section titled “Attributes”| Attribute | Type | Default | Description |
|---|---|---|---|
name | string | - | Icon name to display |
size | string | '1em' | Icon size (CSS unit) |
Sizing
Section titled “Sizing”<icon-v1 name="check" size="16px"></icon-v1><icon-v1 name="check" size="2em"></icon-v1><icon-v1 name="check" size="32px"></icon-v1>With Colors
Section titled “With Colors”Icons inherit the current text color:
<span style="color: red;"> <icon-v1 name="star"></icon-v1></span>In Buttons
Section titled “In Buttons”<ds-button variant="primary"> <icon-v1 name="check"></icon-v1> Save</ds-button>Icon List
Section titled “Icon List”Common icons include:
- Navigation:
up,down,left,right - Actions:
check,close,plus,delete - UI:
search,star,lock,see - Content:
note,page,title,icon - Layout:
expand,collapse,minimize