Skip to content

Icon Component

The icon-v1 component provides access to a comprehensive set of SVG icons.

<icon-v1 name="check"></icon-v1>

DS One includes 50+ icons:

  • check, close, open
  • up, down, left, right
  • search, delete, duplicate
  • star, unstar
  • see, unsee
  • lock, unlock
  • And many more…
AttributeTypeDefaultDescription
namestring-Icon name to display
sizestring'1em'Icon size (CSS unit)
<icon-v1 name="check" size="16px"></icon-v1>
<icon-v1 name="check" size="2em"></icon-v1>
<icon-v1 name="check" size="32px"></icon-v1>

Icons inherit the current text color:

<span style="color: red;">
<icon-v1 name="star"></icon-v1>
</span>
<button-v1 variant="primary">
<icon-v1 name="check"></icon-v1>
Save
</button-v1>

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